Answer the question
In order to leave comments, you need to log in
How to load data into a component before rendering it in Vue?
Guys, hello everyone!!
I ran into such a problem, in one of the components in the console a bunch of errors fall out, due to the fact that the variables are udefined , after they are still displayed and it could be added, but it’s not comme il faut.
Who solves this problem?
Answer the question
In order to leave comments, you need to log in
Fill with default values? Update after the data is received.
props: {
age: {
type: Number,
default: 0,
required: true,
validator: function (value) {
return value >= 0
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question