V
V
Vasya Surname2019-10-05 01:40:24
Vue.js
Vasya Surname, 2019-10-05 01:40:24

How to get variable from vue.js component?

Hello
To get a variable from an instance, you can simply do this
var app = new Vue({ ...
And in another instance you can get
app.message
For example
https://jsfiddle.net/9yerk3Lz/
but this does not work with components
https:/ /jsfiddle.net/c9xa7h63/ The
question is how to get a variable from a vue component to an instance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Miki06, 2019-10-07
@Miki06

Either use vuex or custom events, take your pick and google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question