Skip to content

Consider converting attributes with dashes into to camelCased properties #193

Closed
@sorvell

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions