D
D
danilr2019-05-08 09:48:52
Vue.js
danilr, 2019-05-08 09:48:52

How to call a method of a neighboring component from one component?

The whole point is in the header. You need to call the method of the neighboring component

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jangot, 2019-05-08
@jangot

I don't understand Vue, but I have some experience in front-end development with other frameworks.
If you need to call a component's neighbor method, then you are most likely doing something wrong. But if you can't do without it, then you need to create a method in the parent component and pass it to the child. And the method in the parent will already call the neighboring one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question