How to catch changed from data another component in vue.js?

84 Views Asked by At

index.vue import A.vue, B.vue


and, A.vue import apple.vue


and, B.vue import banana.vue

index.vue

  • A.vue -- apple.vue
  • B.vue -- banana.vue

If change apple.vue, How to catch in banana.vue???

using vuex, vue-property-decorator, typescript

1

There are 1 best solutions below

2
Matt Chambers On

You could implement a global event bus which can be listened to in any individual complement the usual way with Vue.