You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
When converting over to TS -> JS, one major feature that was lost was element binding via the ElementDecorator.
This was intentionally dropped because JS does not have a great alternative to TS-esque decorators. They exist if you do tinkering with babel and polyfills, but it would also require the end user to install these.
Additionally, having to create a class variable with a decorator just to bind an element was not a perfect solution to begin with. Often these were manipulated in the class later on in the code, but not always and it'd be flagged by linters.
Workaround
Currently you can just use the old style of grabbing elements and binding events to them. It's a bit wordy though.
The text was updated successfully, but these errors were encountered:
Something of a "better" workaround was added with #12, but it'd be nice to have something similar to the old decorator binding or implement something in-template.
Background
When converting over to TS -> JS, one major feature that was lost was element binding via the ElementDecorator.
This was intentionally dropped because JS does not have a great alternative to TS-esque decorators. They exist if you do tinkering with babel and polyfills, but it would also require the end user to install these.
Additionally, having to create a class variable with a decorator just to bind an element was not a perfect solution to begin with. Often these were manipulated in the class later on in the code, but not always and it'd be flagged by linters.
Workaround
Currently you can just use the old style of grabbing elements and binding events to them. It's a bit wordy though.
The text was updated successfully, but these errors were encountered: