How does the @property({type: Boolean}) actually work ? #4395
Replies: 2 comments 2 replies
-
You still need to initialize boolean properties.
|
Beta Was this translation helpful? Give feedback.
-
Hi Justin, Thanks for your answer !
When do these use cases happen ? Do you have some example ? I feel that in my case my element fullfills exactly these prerequisites of having the visible property of type Boolean and not having the corresponding attribute. |
Beta Was this translation helpful? Give feedback.
-
Hi !
I can't really wrap my head around what is written in the Lit Documentation about the default converter and the Boolean type...
Lit Conversion Type
This is the playground code I am trying to figure out:
As per the documentation, shouldn't my visible property be initialized with false ? Why is it still undefined ? What am I missing ?
Here is the documentation about boolean properties:
Here is a link to the playground:
Lit Playground
Beta Was this translation helpful? Give feedback.
All reactions