L
L
lemonlimelike2018-06-25 22:45:45
JavaScript
lemonlimelike, 2018-06-25 22:45:45

How to access the parent component?

I don’t even know if I asked the question correctly, but oh well ...
Here I have an App.vue component in it, I import the Navbar and Content components:
5b3145c3799f3071430590.png
The content component contains all entries, respectively, and I import the PanelUser component into the Navbar component. 5b3146194ac2d579986440.png
For example, in the PanelUser component there will be a method that will have to change the content of the page, how can I do this? How to contact a parent?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2018-06-25
@lemonlimelike

First read this: https://en.vuejs.org/v2/guide/components.html#%D0%...
then this: https://en.vuejs.org/v2/guide/components-edge-case ...
and then this: https://ru.vuejs.org/v2/guide/state-management.html and https://vuex.vuejs.org/ru/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question