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
@property
When using a variable to declare an attribute of a property, the variable is ignored.
playground reproduction
this class:
import { LitElement } from 'lit-element'; const meow = 'meow-meow' export class MyElement extends LitElement { static get properties() { return { fooFoo: { type: String, attribute: 'foo-foo' }, meowMeow: { type: String, attribute: meow } } } ...
Ends up with these attributes:
"attributes": [ { "name": "foo-foo", "type": { "text": "string" }, "fieldName": "fooFoo" }, { "name": "meowMeow", "type": { "text": "string" }, "fieldName": "meowMeow" } ],
Expected behavior
The variable should be processed to get the correct name of the attribute:
"attributes": [ { "name": "foo-foo", "type": { "text": "string" }, "fieldName": "fooFoo" }, { "name": "meow-meow", "type": { "text": "string" }, "fieldName": "meowMeow" } ],
thanks for any help, Scott
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using a variable to declare an attribute of a property, the variable is ignored.
playground reproduction
this class:
Ends up with these attributes:
Expected behavior
The variable should be processed to get the correct name of the attribute:
thanks for any help,
Scott
The text was updated successfully, but these errors were encountered: