Answer the question
In order to leave comments, you need to log in
Routes vue axios arrays, how to understand how routes work?
Don't scold me right away, I'm new to vue.js.
I am doing a small test project, the structure is ready, there is an object with arrays of the form
dataStorage: [
{
name: 'Igor',
age: 32,
hair: 'black'
},
{
name: 'Valera',
age: 32,
hair: 'black'
},
......... и т.д.
]
Answer the question
In order to leave comments, you need to log in
Routes are pages implemented dynamically in JavaScript.
Such as:
/about
/search
/help
/people
export default {
data() {
return {
dataStorage: new Array(),
}
},
mounted() {
this.dataStorage.push({
name,
age,
hair,
})
},
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question