material icon indicating copy to clipboard operation
material copied to clipboard

Unable to use md-virtual-repeat="(key,value) in Object"

Open neo-wanderer opened this issue 11 years ago • 2 comments

I would like to use key value pairs in md-virtual repeat. But it doesn't seem to be working like it works in ng-repeat.

Is it not implemented yet? or am I doing something wrong

http://codepen.io/anon/pen/JYwwLB

neo-wanderer avatar Nov 14 '15 02:11 neo-wanderer

It's not implemented.

kseamon avatar Dec 08 '15 18:12 kseamon

I ran into this same issue. For some use cases (including mine), a good workaround is to convert the key-value pairs to a two dimensional array (using, for instance, Object.entries()) and then use md-virtual-repeat to iterate over the resulting array.

johndshea avatar May 31 '18 20:05 johndshea