Attributes with a hyphen do not reflect to LitElement property
See original GitHub issueIssue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Attributes with a hyphen do not reflect to LitElement property #29
with a property withProperty within class AThing extends LitElement does not reflect in the withProperty property.
Read more >Properties - Lit.dev
LitElement manages your declared properties and their corresponding attributes. By default, LitElement will: Ensure that an element update is scheduled when ...
Read more >Use of hyphenated property keys for element.style
I am familiar with the use of setting inline styles on elements using the elements style property. For style properties which are hyphenated...
Read more >Lit-html-element NPM | npm.io
Mapping name is up to user, no automatical case-conversion happens; Default values of auto-reflected properties depend on presence of attributes.
Read more >Turning up to Lit - DEV Community 👩💻👨💻
Tagged with litelement, polymer, webcomponents, javascript. ... This value will be reflected to an attribute everything-property ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can this decision still be challenged? This fundamentally limits the cross-compatibility with other frameworks like Vue.js which is kind of a bad thing for a web-component-focused framework, isn’t it?
LitElement is about as vanilla as it gets, it is not trying to invent anything already present in the platform. It just adds a few things missing. There are even spec proposals like Template Instantiation, making lit-html even smaller - and making all of this just a tiny bit of convenience.
This is the future of Polymer as well, removing as much of the custom stuff as possible, and what turned out to not make sense, and just use the platform as much as possible, now that it is actually possible to do so.
Expect a lot of the “magic” from Polymer not to be present in LitElement, like reflection, computed values etc