R
R
Roman Rakzin2016-09-25 00:08:50
Vue.js
Roman Rakzin, 2016-09-25 00:08:50

How to organize communication between components in vue.js?

There is a main component and a field for the "router", the content of which changes depending on the url. I can't reach the main component from the router component, pass values ​​and vice versa - from the main component to the child ones located in the router field.
How to call functions and pass values ​​to another vue.js component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-09-25
@void01

for example, store a reference to objects in global variables,
something like
window.myVue = { router : null, object1 : null }
window.myVue.router = /..here router initialization../

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question