-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
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
Rename @controller
to @customElement
#233
Comments
Thanks for the feedback. You can freely name the decorator whatever you want. I think Catalyst controllers do a lot more than Custom Elements do, so |
Every time use the
@controller
decorator, i think about whether this is the right name. If omit the details eventually it registers the class inwindow.customElements
and it doesn't matter how you name the class using the endingsElement|Controller|Component
. Therefore, it seems to me that@customElement
is a more appropriate name. Concept of controllers is used in stimulus , but they do not extend the elements. In this regard, Lit is closer to catalyst.The text was updated successfully, but these errors were encountered: