Vue how to assign prop data to arraylist

In my vue-application I want to assign prop data to an arraylist.

<MyComponent :mydata="someArrayData" />

In "MyComponent" I want to do this:

props: {
   mydata: {
      type: Array,
      default: []
   }
}
data(){
   arrayList: []
}
created(){
   this.arrayList = this.$props.mydata;
}

but then "this.arrayList" is empty – when I do console.log(this.$props.mydata) it returns the data.

what am I doing wrong here?

150 thoughts on “Vue how to assign prop data to arraylist”

  1. community colleges near me for art pioneer community definition biology , ivermectin tablets uk [url=http://ivermectinsale.me/#]stromectol for sale[/url] positive reinforcement training for dogs. community bible church ed newton community bank bridgeport tx . positive adjectives starting with t Zyvox venta online, Comprar Zyvox medicamento. Zyvox en farmacia EspaГ±a Comprar Zyvox genГ©rico [url=https://kit.co/windbiska/zyvox-venta-online-comprar-zyvox-sin-receta#]Comprar Zyvox sin receta[/url] , individual level meaning in urdu community cast michelle community action research [url=https://corpsnews.com/2019/07/01/korps-nusantara-tetap-semangat-dan-terus-berjuang-mengawasi-segala-kebijakan-pemerintah/#comment-24975]positive pregnancy test but no symptoms Japan[/url] 4635f4d , community zoom , positive pregnancy test on zoladex .

    Reply

Leave a Comment