Multiple ng-repeat on single element

前端 未结 5 431
慢半拍i
慢半拍i 2020-12-11 03:17

Is this possible to achieve a code like this:-


       {{data}} {{value}}
 
<         


        
5条回答
  •  甜味超标
    2020-12-11 03:52

    Does this suits your need

    http://jsfiddle.net/jmo65wyn/

    Your data, value array as object array

     this.obj = [{data: 'a', value :true}, {data: 'b', value:true}];
    

    And you loop like this

     
    {{o.data}} and {{o.value}}

提交回复
热议问题