Answer the question
In order to leave comments, you need to log in
How to read the value/presence of an attribute as a parameter?
Imagine there is a component
that has a boolean parameter.
But this is too verbose. How to use this parameter in the form
If there is an attribute , then , if not, then ?
I honestly expected it to work out of the box, but alas... <cool-component :stuff="true"></cool-component>
stuff
<cool-component stuff></cool-component>
stuff
true
false
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question