Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key/value iteration support for template dom-repeat #1846

Closed
tam4s opened this issue Jun 12, 2015 · 2 comments
Closed

key/value iteration support for template dom-repeat #1846

tam4s opened this issue Jun 12, 2015 · 2 comments

Comments

@tam4s
Copy link

tam4s commented Jun 12, 2015

Currently it's very clumsy to iterate over JavaScript Objects:

http://stackoverflow.com/questions/30781500/how-can-i-iterate-over-a-js-objects-key-values-in-polymer-1-0

It should be as simple as

<template is="dom-repeat" items="[[myobj]]">
    <span>[[item.key]]</span>: <span>[[item.value]]</span>
</template>
@arodic
Copy link

arodic commented Jun 12, 2015

@tam4s the solution from stack overflow will not observe the object changes so any change you make to the object after binding will not be reflected in dom-repeat.

The need for this feature has been expressed numerous times here, here, here and ultimately, the issue was moved here by @kevinpschaaf to be implemented in 1.0.

@kevinpschaaf
Copy link
Member

Closing, as the feature request is covered by #1385 and will be tracked there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants