My service gives below json result
{"categories":[{"category_id":"20","name":"Desktops"}, {"category_id":"18","name":"Laptops &},{"category_id":"25","name":"Components"},
{"category_id":"57","name":"Tablets"},
{"category_id":"17","name":"Software"},
{"category_id":"24","name":"Phones} ]}
this is my html code:
<tr ng-repeat="menu in menuitems">
<td>
{{menu.name}}
</td>
in controller I fill $scope.menuitems with the json result
I am not able to render the list of names in html. If I write {{menu[0].name}} I do get one record.What am i doing wrong that I am unable to iterate over the json collection.