Answer the question
In order to leave comments, you need to log in
How to combine v-bind on multiple attributes?
How to combine multiple attributes in one v-bind statement?
Now I have this code. Everything works, but too much code:
<input type="checkbox" :name="[index === 0 ? 'firstChildFieldPhone' :
'secondChildFieldPhone']" :id="[index === 0 ? 'firstChildFieldPhone' :
'secondChildFieldPhone']" checked>
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