We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lang-updated event listener is not called on non-legacy ES6 class syntax
lang-updated
connectedCallback()
connectedCallback() { super.connectedCallback(); this.listen(this, 'lang-updated', '_langUpdated'); } _langUpdated(effectiveLang) { this.model = deepcopy(this.text.model); }
observers
listeners
effectiveLang
static config() { return { observers: [ '_langUpdated(effectiveLang)' ] } } _langUpdated(effectiveLang) { this.model = deepcopy(this.text.model); }
The text was updated successfully, but these errors were encountered:
[PoC demo] Apply the workaround for Issue #43
0d0d401
[PoC demo] Apply a normal workaround for Issue #43
9e4542b
[PoC demo] Revert to the original demo after Fix #43
0444eaa
ea50300
Version 0.0.65 with Fix #39 and Fix #43
3303bee
Does this issue mean config.listeners is deprecated?
config.listeners
Polymer/polymer#4173
Sorry, something went wrong.
No branches or pull requests
lang-updated
event listener is not called on non-legacy ES6 class syntaxWorkaround: Imperative listener addition at
connectedCallback()
Workaround 2: Use
observers
instead oflisteners
effectiveLang
argument properly in the observerThe text was updated successfully, but these errors were encountered: