How to use ng-repeat without an html element

后端 未结 8 1525
暖寄归人
暖寄归人 2020-11-30 23:35

I need to use ng-repeat (in AngularJS) to list all of the elements in an array.

The complication is that each element of the array will transform to ei

8条回答
  •  渐次进展
    2020-12-01 00:38

    Update: If you are using Angular 1.2+, use ng-repeat-start. See @jmagnusson's answer.

    Otherwise, how about putting the ng-repeat on tbody? (AFAIK, it is okay to have multiple s in a single table.)

    
      
         {{item}}
      
    
    

提交回复
热议问题