Just starting out with AngularJS and I could use some assistance. I have a JSON file that I've been working on, and I'm attempting to create a search filter by ingredient using AngularJS. Can anyone provide guidance?
{
"id": 01,
"recipe-name": "Fried Fish",
"ing": {
"i1": "1 fish",
"i2": "1 egg",
"i3": "1\/2 cup flour",
"i4": "salt and pepper",
"i5": "chili leaves"
}
}
Below is the snippet of code for the filtered results:
<div class="results" ng-repeat="r in recipes | filter:q.ing">