How can I stay informed about any changes in Banana.vue?
I have tried using addEventListener, @watch but it doesn't seem to be working...
The index.vue file is importing both Apple.vue and Banana.vue
In Apple.vue:
localStorage.setItem('fruit', 'apple)
In Banana.vue:
@watch(localStorage.getItem('fruit' || '')
changeFruit() {
this.fruit = localStorage.getItem('fruit')
}