How can I use ng-repeat like for in Javascript?
example:
<div ng-repeat="4">Text</div>
I want to iterate with ng-repeat 4 times but how can I do it?
Angular comes with a limitTo:limit filter, it support limiting first x items and last x items:
<div ng-repeat="item in items|limitTo:4">{{item}}</div>
2.1m questions
2.1m answers
60 comments
57.0k users