Reputation: 1635
I've made a key/value object named items and was wondering if the syntax I have below is wrong.. Or is the below not possible in Angular? (Or is a better way possible?)
<div ng-repeat="thing in things">
<span ng-repeat="item in items.{{thing}}">
{{item.id}}
</span>
</div>
Upvotes: 0
Views: 112
Reputation: 26268
As Mike said, try
<div ng-repeat="thing in things">
<span ng-repeat="item in items[thing]">
{{item.id}}
</span>
</div>
Upvotes: 1