Majeed
249
5
Vue

How to pass props array into a child component array in Vue

Posted 6 months ago by Majeed

I'm try to pass a parent props array in my child component array. my child component is a modal Here,is my props value

props:{
 userdata:{
        type:[Array,Object],
        required:true,
      },
}

and my child component array

data(){
      return{
       mutableRoles:[],    
      }

i want to pass my userdata array into my mutableRoles array

Please sign in or create an account to participate in this conversation.