I can't seem to put a JS object reference as an attribute in a template
repeat statement. Anyone have an idea why this doesn't work?
This works:
<polymer-custom-parent>
<template repeat="{{item in items}}">
<polymer-custom-item item="randomstring">
{{item.title}}
</polymer-custom-item>
</template>
</polymer-custom-parent>
This does not:
<polymer-custom-parent>
<template repeat="{{item in items}}">
<polymer-custom-item item="{{item}}">
{{item.title}}
</polymer-custom-item>
</template>
</polymer-custom-parent>
Console error:
Exception caught during observer callback: TypeError: Cannot read property
'length' of undefined at Element.bind (
http://localhost:8888/bower_components/platform/platform.js:33:5389<http://localhost:8888/bower_components/platform/platform.js>
)
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.