skip to Main Content

Javascript – how can I get data from a child component to a parent component if there are several input fields in the child component?

The parent component has data that I want to pass to the child component. For example, I created such a component with data. Parent component <template> <NameUser :data="userData"></NameUser> <div>first name: {{ userData.firstName }}</div> <div>last name: {{ userData.lastName }}</div> </template> <script…

VIEW QUESTION
Back To Top
Search