Does collection-repeat directive support (key, value) in expression
form?
2 Likes
yeah i will like the same
Hi Francoaa,
Did you got an answer for this?
ng-repeat has this stuff:
<div ng-repeat="(key, value) in myObj"> ... </div>
It would be nice to have this in collection-repeat too.
No, you can’t use object in collection-repeat.
From Ionic docs:
“The data given to collection-repeat must be an array.”
Source: http://ionicframework.com/docs/api/directive/collectionRepeat/