Declarative properties
snuggs opened this issue ยท 0 comments
snuggs commented
Look up CE.attributesChangedCallback
& CE.observedAttributes
Expected Behavior
<foo-bar baz=bat>
This is ๐ {baz}
</foo-bar>
<script>
Element `foo-bar`
(class extends HTMLElement {
set baz () {
// defaults to returning this.attributes.baz.nodeValue
// defaults to being added to observedAttributes
}
})
</script>
</foo-bar>
Current Behavior
Possible Solution
Steps to Reprod(uce)
Context
Your Environment
- Version used:
- Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
- Server type and version:
- Operating System and version:
- Link to your project: