I am trying to learn how to load JSON with Angular. I\'m a beginner with both topics, and am stuck on some really beginner topics.
I have a JSON file called food.json. I
ng-repeat
in your case will iterate the array of objects in your data
You just need to use :
-
Then on each pass of the loop, angular will reference the current object in array to produce output like {{ food.title }}
I updated your demo here
Edit Strongly suggest you go through the tutorial on angular docs site step by step