0 votes
in VueJS by
What is $parent in Vue?

1 Answer

0 votes
by
Similar to $root, the $parent property can be used to access the parent instance from a child.

Although it provides direct access, it makes the application hard to test and debug. And we can not easily find out the where the mutation come from.

Vue also provides $child just like $parent, but it can be used to access the child instance.

Related questions

0 votes
asked Oct 9, 2019 in VueJS by Indian
0 votes
asked Oct 7, 2019 in VueJS by Tate
...