S
S
Sergey750il2022-04-21 22:17:16
Vue.js
Sergey750il, 2022-04-21 22:17:16

How to change props?

Good day. There is a component, data comes to it through props, in this component there is a child with a button through which we launch the action and how should we change the data in the props of its parent? How can I change the props of the parent?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
imko, 2022-04-22
@imko

https://vuejs.org/guide/components/events.html#usa...

A
Albert Efremov, 2022-04-23
@AlbertName

You can't change props. Otherwise, you can take it like this, change the props somewhere, and in another place it will come out in the form of a mustachioed, striped bug. And why, you will not immediately understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question