I need to output two lists with data from the same ng-repeat
in different parts of the page. For example:
// list # 1
<ul ng-repeat="item in items track by item.id">
<li ng-bind="item.name"></li>
</ul>
// list # 2
<ul ng-repeat="item in items track by item.id">
<li ng-bind="item.color"></li>
</ul>
Instead of using multiple instances of the same ng-repeat
, is there a way to use data from the first ng-repeat
instance in list # 2
?