How can I achieve the output of two ng-repeat
so that they are mixed.
Current output:
john
maria
peter
red
blue
green
Desired output:
john
red
maria
blue
peter
green
of this:
<body ng-controller="MainCtrl">
<div ng-repeat='item in names'>{{item.name}}</div>
<div ng-repeat='item in colors'>{{item.color}}</div>
</body>
However, I don't want to use ng-repeat-start
and ng-repeat-end
as I'm using stagger animation.
Many thanks
EDIT: hypothetically, both data are coming dynamically from different sources, hence they're not in one/same object.