Answer the question
In order to leave comments, you need to log in
Why can't he see the data in the vue.js component?
Good afternoon! I got confused with parsing vue.js components. I wanted to make a simple filter by name and age, I created a component so that I could do several filters on the page, I wrote all the data into the data variable and return this variable in the data function. But it gives errors like this:
Answer the question
In order to leave comments, you need to log in
You cannot place text/x-template inside a root element (to which you bind the instance). That's right.
Because Property or method "option" is not defined anywhere for you.
declare the component template outside the #app block - for example, before it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question