I am new to AngularJS and I have to say I am finding it exceedingly difficult and fiddly.
I have a json response from a webserver. Typical array of dictionaries. I want to display the name key for each dictionary in the values array. This works:
<ul>
<li ng-model="projects" ng-repeat="values in projects">
project name:{{projects.values[$index].name}}
</li>
</ul>
This does NOT work, but I don't understand why it doesn't:
<ul>
<li ng-model="projects" ng-repeat="values in projects">
project name:{{values.name}}
</li>
</ul>
Plain old {{name}} doesn't work either. None of the examples I've found resort to calling out the array index explicitly with $index, so I must be doing something wrong. Please enlighten me!