I have a custom element system-menu that looks like this::
<dom-module id="system-menu"> <template> <template is="dom-repeat"
items="{{data}}"> <li>{{item.name}}</li> </template> </template> </dom-module>
<script> (function() { Polymer({ is: 'system-menu', behaviors: [
Polymer.IronMenubarBehavior ], ready: function() { console.log(this.data); }
}); })(); </script>
Now, after importing, I use it like this::
<system-menu class="list flex horizontal end-justified layout"
data='{{data}}'></system-menu>
Notice that {{data}} is a json encoded string. I pass that string to my element
to be used to populate it. So how do I catch that json string in my element and
use it in a dom-repeat template.
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/c5430405-143c-476d-87a3-4707d136978e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.