Javascript -
angular
.module('app.somecontroller', [])
.controller('SomeController', SomeController)
function SomeController(){
containerInd = [0,1,2,3,4]
}
HTML -
<ul>
<li ng-repeat='i in containerInd'>
{{i}}
</li>
</ul>
Far as i know ng-repeat must use object on controller itself, how about repeat like-
for(var i=0;i<n;i++)
<li ng-repeat='i to 5'>
Can angular ng-repeat do that ?
--edit--
Ah,, i got it i can do some thing like that
<li ng-repeat='(key,value) in containerList'
sory :(, my question is not clear before I have list of string on containerList and need to get the key of list inside ng-repeat