angularJS ng-repeat list items
You can do this in angularjs
<ul data-ng-repeat="airport in airports">
<li></li>
<li>{{airport.name}}</li>
</ul>
And you get 3 ul with li in them.
How do you do it with one ul?
if I do this:
<li ng-repeat>{{airport.code}}</li>
<li ng-repaet>{{airport.city}}</li>
then I get all the codes, then all the cities.
No comments:
Post a Comment