You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an attribute is setup for a custom element that has a dash ('-') in it, it's reflected to a property with the same name. This makes referencing the value cumbersome since this['..'] notation must be used. Additionally, the property cannot be used as a binding value for mdv.
We could document that attributes with dashes are not supported.
However, we may want to convert these attributes to camelCased properties: an attribute "foo-bar" to a property "fooBar."
If an attribute is setup for a custom element that has a dash ('-') in it, it's reflected to a property with the same name. This makes referencing the value cumbersome since this['..'] notation must be used. Additionally, the property cannot be used as a binding value for mdv.
We could document that attributes with dashes are not supported.
However, we may want to convert these attributes to camelCased properties: an attribute "foo-bar" to a property "fooBar."
See feedback in https://groups.google.com/forum/#!topic/polymer-dev/GWzc8zekb-o
cc @ebidel
The text was updated successfully, but these errors were encountered: