[Vuejs]-Vue.js radio button not getting checked by default?

2๐Ÿ‘

โœ…

v-model always use the data property as the single source of truth.

v-model will ignore the initial value, checked or selected attributes found on any form elements. It will always treat the Vue instance data as the source of truth. You should declare the initial value on the JavaScript side, inside the data option of your component.

Source: https://v2.vuejs.org/v2/guide/forms.html#Basic-Usage

So as the comment said, you just have to work on the value of picked on your Vue instance.

data() {
    return {
        picked: "business"
    };
}
๐Ÿ‘คFitzFish

Leave a comment