The property only needs to be published (and hint as an objected) for it to
be [de]serialized correctly. For example, you can publish `fullName` in
attributes="" and things work marvelously: http://jsbin.com/tecayaho/3/edit

>From the doc
<http://www.polymer-project.org/docs/polymer/polymer.html#attrreflection>s,
objects/arrays never reflect...even if you publish them with `reflect:
true`:

The property value is serialized to a string based on its data type. A few
types get special treatment:

   -

   If the property value is an object, array, or function, the value is
   never reflected, whether or not reflectis true.

Also note, your binding should be {{fullName.first}} in the template :)



On Thu, Jun 5, 2014 at 4:39 PM, Clayton Watts <[email protected]> wrote:

> I think the docs (
> http://www.polymer-project.org/docs/polymer/polymer.html#attrhinting)
> could be clearer about the fact that to create an element like the x-name
> shown that can accept an array or object written in the DOM as a string,
> you must use a publish block and set reflect to true. (The word 'reflect'
> doesn't immediately seem to indicate its necessity for input as well as
> output).
>
> See this not working jsbin:
> http://jsbin.com/tecayaho/1/edit?html,console,output
> and this working one: http://jsbin.com/tecayaho/2/edit?html,console,output
>
> This also means one has to include the property in the publish block AND
> in the created callback. Is there any way around that?
>
> Clayton
>
> 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/CAGw__zFoqJraBuf6rmBCJnBoYWy1AFZ2pwxVG%3Dj%3DSGmN2FRMWQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/polymer-dev/CAGw__zFoqJraBuf6rmBCJnBoYWy1AFZ2pwxVG%3Dj%3DSGmN2FRMWQ%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/CACGqRCCjcM6EY4Zed-TmuMx0a5s44zh-EH1UgfW71aAtWP5BOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to