Iteration ng-repeat only X times in AngularJs

前端 未结 7 1975
悲哀的现实
悲哀的现实 2020-11-28 04:08

How can I use ng-repeat like for in Javascript?

example:

Text

I want to iterate wit

7条回答
  •  春和景丽
    2020-11-28 04:39

    This is the simplest workaround I could think of.

    
    {{$index}}
    
    

    Here's a Plunker example.

提交回复
热议问题