I'm currently exploring ways to extract specific data from a JSON object stored within a scope through filtering or querying.
For instance:
$scope.myBook = {"bookName": "Whatever",
"pages": [
{"pageid": 1, "pageBody": "html content for the page", "pageTitle": "Page 1"},
{"pageid": 2, "pageBody": "html content for the page", "pageTitle": "Page 2"},
{"pageid": 3, "pageBody": "html content for the page", "pageTitle": "Page 3"},
]
}
Is there a way I can specifically retrieve the object with pageid:2?