-
Notifications
You must be signed in to change notification settings - Fork 318
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
static get properties() vs @property(): How to get properties when @property() is used. #1111
Comments
See this example in the other issue you posted: #1102 (comment) Going to close this as we've added this capability to the next major version, and we're not going to address the issue in the current version given that you can work around the problem as shown above. |
Ah! it is |
I've got a class that extends LitElement from Lit 3.1.3, and Edit: it's a static function, so can't access it on the instance. |
You can access static properties from the constructor: this.constructor.elementProperties; |
When
is used, then
does work.
But when
is used, then
TypeError: can't convert undefined to object
. I suspect it refers toproperties
.So, how can I get the names when
@property()
is used?The text was updated successfully, but these errors were encountered: