Answer the question
In order to leave comments, you need to log in
Ternary operator with one property how?
Hello, the ternary operator is convenient to use in, for example, when processing v-on events, but how can you set only one property to it.
for example, you can use a crutch with
isDropped ? "что либо, к примеру 'true' либо 'myVariable' без присваивания значения" : myVariable = true
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