I did use Objects in Arrays to read and it always worked but somehow it won't work for initialzing them. I need more variables inside articleList then only the number, so i can't just give the value to a normal array.
This works:
data(){
return{
articleList:[],
}
}
in the method {
number.forEach((e,i)=>{
this.articleList[i] = e
})
}
This somehow won't work:
data(){
return{
articleList:[
{artNr:null}
],
}
}
in the method{
number.forEach((e,i)=>{
this.articleList[i].artNr = e
})
}