-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.9] hostAttributes: Noooooooo! #1549
Comments
Attributes and properties are subtle in native elements. The important bit is that attributes do not always map to properties (Aria attrs) and vice versa ( A good example for needing
When created: If you want a property that also reflects to an attribute, use |
Ok thanks for the explanation, I can see now why it must be. |
Thanks ebidel for the concise explanation - should definitely be added to the docs. I was confused too when clearly I could define exposed attributes (ie the public api) via the polymer element properties object, but your explanation somewhat clears up the difference between user-created properties and default HTML attributes. |
so do I do both
&
? |
Should be just the first. Elements dont have a |
Please just stick with using properties for everything
Properties are properties don't confuse everybody with the following
The text was updated successfully, but these errors were encountered: