Hi

I was reading through 0.8 PRIMER.md and I encountered these two statements:

At 
https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#attribute-deserialization
 
it says:

If an attribute matches a property listed in the published object, the 
> attribute value will be assigned to a property of the same name on the 
> element instance


Then later, at the end 
of 
https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#basic-property-binding
 
it says:

In order to bind to camel-case properties of elements, dash-case should be 
> used in the attribute name. Example:
> <user-view first-name="{{managerName}}"></user-view>
> <!-- will set <user-view>.firstName = this.managerName; -->


Is this dash-to-camel-case conversion applies uniformly to all assignments 
to published properties in the element tag? If so, then the first statement 
should not say "property of the same name", right?

Or does it mean that  <user-view first-name="John">   and   <user-view 
first-name="{{managerName}}">  are somehow different in this regard?

Thanks,
Artem

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/8026315b-2d0b-406f-a8d2-c0e5d0a5fcdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to