171
rated 0 times
[
172]
[
1]
/ answers: 1 / hits: 58852
/ 10 Years ago, mon, november 10, 2014, 12:00:00
I have a controller that returns an array, I'm trying to display every element of that array as a list.
What I am attempting to do, which is not working:
<li ng-repeat=Name in names>
<a ng-controller=PostsCtrl href=#>{{response.text}}</a>
</li>
response.text returns an array from the controller.
I am also wondering, what is the value of the ng-repeat attribute supposed to be, any unique string?
Thank you!
More From » arrays