Closed bennypowers closed 6 years ago
You need to call withProperties()
when registering
customElements.define(TtcFtw.is, TtcFtw)
should be customElements.define(TtcFtw.is, TtcFtw.withProperties())
Can you try that?
You can also call withProperties
any time before or after define
- but it needs to be called once before the properties will work as expected
Ok saw that now. didn't notice in the docs. You might want to put a link in the advanced section for readers like me that try to skip to the juicy bits š
Side note, polymer-ide complains 'unable to evaluate this expression down to a class reference' when I call that method in the definition. Might be able to solve that with jsdoc tags.
Thanks again.
Feel free to submit PRs to improve the docs or generate jsdocs from the TS files
Setting a property from outside via assignment operator doesn't seem to be calling render
Works:
Doesn't work:
README.md Advanced section says that setting properties will cause a render. Please clarify in docs how that works. Cheers! š»