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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -