angularjs - Multiple ng-repeats on same element -


is possible have more 1 ng-repeat on same element (i.e. not nested)?

like so:

<section ng-repeat="clustera in foo.bara.clusters" ng-repeat="clusterb in foo.barb.clusters"> 

i want use ng-if display clustera , clusterb in same row if have same name. conceptually this fiddle.

you ng-repeat on clustera , use $index check same record in clusterb.

something like:

<section ng-repeat="clustera in foo.bara.clusters">   <span class="col-md-6">clustera</span>   <span ng-if="clustera == foo.barb.clusters[$index]" class="col-md-6">foo.barb.clusters[$index]</span> </section>   

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -