Create an ng-repeat iterable from an integer in AngularJS
One of the key features of AngularJS is ng-repeat
which is a "directive that instantiates a template once per item from a collection." The key in this sentence that it can create a template for items in a collection - collections being arrays or objects. But how can you iterate through a simple integer value? Let's have a look at this now.
Tamas Piros | 30 July 2015 | AngularJS, Tip of the day