Hey Junius,
I faced a similar issue, but if it is a work-around you need, then inside
the "ready" method of Polymer, I tried parsing the string (in this case
"jsobject") as JSON with JSON.parse() , and it worked. Not saying this is
the best way to do it though.
Aakar
On Monday, March 24, 2014 2:56:07 PM UTC-7, Junius Gunaratne wrote:
>
> Is there a proper way to pass JS objects to child elements? I'm trying to
> pass a JS object to a child element as an attribute. This worked in Polymer
> 0.2.0, but in 0.2.1 the object is changed to a string and I get
> [Object][Object] as a string in the child element instead of the actual JS
> object.
>
> <parent-element>
> <child-element flag="{{jsobject}}"></child-element>
> </parent-element>
>
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/fd3a429e-651c-443d-b497-b98c9e746421%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.