I have an array of objects like below :
const plans = [{type:'2'},{type:'3'},{type:'1'}]
And I want to store those values into radio inputs in Vue. I've tried this :
<input type="radio" v-model="pick" :value="plans[0]" />
<input type="radio" v-model="pick" :value="plans[1]" />
<input type="radio" v-model="pick" :value="plans[2]" />
But instead I got an error :
Invalid prop: type check failed for prop "value". Expected String, Number, got Object
Is there any way I can do to hack this? Thank you