This is a common problem if load your dependencies out of order. The module that defines the owner of `child-element` (not specified in your example) must import the code for 'child-element' or the binding can be misapplied.
On Mon, Mar 24, 2014 at 2:56 PM, Junius Gunaratne <[email protected]> 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/CAC57C_SxQ5jZJPTWws_Veam33DqK0LEX1juZJ4oUkW4tHZ3pOw%40mail.gmail.com<https://groups.google.com/d/msgid/polymer-dev/CAC57C_SxQ5jZJPTWws_Veam33DqK0LEX1juZJ4oUkW4tHZ3pOw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > 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/CAHbmOLZXTJjYoPAAkg4Btbj_Q2w-AZZNtiYkf5ZuF83BNxFXEg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
