Collection-repeat support "(key, value) in expression"


#1

Does collection-repeat directive support (key, value) in expression form?


#2

yeah i will like the same


#3

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.


#4

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/