A
A
Aidar2018-11-25 22:28:53
Vue.js
Aidar, 2018-11-25 22:28:53

How to make radio item selected by default in Vue.js?

Hello!
https://codepen.io/anon/pen/LXrxxB?editors=1010
Here, for now, the value of what I chose is displayed. But how to make, for example, the first item was already selected by default?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-11-25
@Aderus

With the help of v-bind, you can also pass a second parameter to v-for and use it, for example, to assign an id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question