*From:* [email protected] [mailto:[email protected]] *On Behalf Of *[email protected]
Seems like I am not having the actual parentContent at the time of generating the child-polymer-element. If I assign hardcoded values in ready function for this.parentContent, it doesnt work as well. If I assign hardcoded values in create function for this parent.Content, it works. So, I am not not sure if this is something related to generating the child polymer element before the values getting binded to parent. Also, it works if testDataChild is a string and not an array Hi, I believe you’re hitting the condition where arrays, because they are objects, are shared between every instance of your element in singleton fashion. To work around this you need to not define the array, which will be populated by the attribute binding, in the prototype but instead create them in a “created” call-back inside your element’s script. The reason you’re seeing it work correctly with strings is because, unlike arrays and objects as I said above, strings and numbers are not shared between instances of your element but are unique to each instance. Regards, Daniel Llewellyn 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/e956a61849fdd3f444db277f92327c21%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
