[Vuejs]-How can we declare a variable dynamically in data function in vue js?

0👍

for your question is the full answer by @Dan. But why are you don’t want to create a phone array to store dynamic phones in it? You can easily work with array add\remove and etc…

data(){
return{
    form:{
        name:'',
        email:'',
        phone: [XXXXXXX, XXXXXX],
    }
}

}

Leave a comment