Answer the question
In order to leave comments, you need to log in
How to properly use vuejs components?
Hello! I'm learning Vue. I can't figure out how to use components.
Let's say I have a single-file component: <select></select>
I use it in the parent component:
<app>
<select></select>
<form></form>
</app>
@change в <select>
user is redirected to the calculator page. By means of routing. This page is another component<calc>
<select></select>
<step1></step1>
<step2></step2>
</calc>
<app>
selected selects are not transferred. Explain please, if not difficult. Answer the question
In order to leave comments, you need to log in
What means the selected selects are not transferred? What did you choose in the first select? If yes, then these are different instances of the same component and they are not related to each other in any way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question