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

@template doesn't work with arrays #42

Closed
aabluedragon opened this issue Aug 8, 2015 · 6 comments
Closed

@template doesn't work with arrays #42

aabluedragon opened this issue Aug 8, 2015 · 6 comments

Comments

@aabluedragon
Copy link

@template fails to work with arrays (using dom-repeat), console output is:
Polymer::Attributes: couldnt decode Array as JSON`

@nippur72
Copy link
Owner

nippur72 commented Aug 8, 2015

Looks like a webcomponentjs issue.

I made a new release of PolymerTS, forcing it to ask for webcomponentsjs >=0.7.10, where some issues are fixed. It should work at least on Chrome and FF (IE is bugged, but I'm investigating it).

Can you please confirm this new rel works on Chrome and FF for your issue?

Just run a bower update.

@aabluedragon
Copy link
Author

Fix confirmed.
Thanks!

@nippur72
Copy link
Owner

nippur72 commented Aug 9, 2015

I fixed also the case for IE11, just update to latest (0.1.13)

@Kilometers42
Copy link

Can this solution be extended to deal with dom-repeat not working inside table tags in IE11? (see Polymer/polymer#1735)

@nippur72
Copy link
Owner

no, this fix works only for the @template decorator, but perhaps it might get fixed with the next webcomponents as they solved the issue with <template> and innerHTML.

See Polymer/polymer/issues/2114

@nippur72
Copy link
Owner

and, btw, try using webcomponents.js instead of webcomponents-lite.js, see if it works.

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