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: []
   arrayList: []
   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=]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=]Comprar Zyvox sin receta[/url] , individual level meaning in urdu community cast michelle community action research [url=]positive pregnancy test but no symptoms Japan[/url] 4635f4d , community zoom , positive pregnancy test on zoladex .


Leave a Comment