mardi 28 avril 2020

Sharing data between 2 Vue projects

So to make it really simple, because of the way we're using Vue, we have 2 different projects running in html.partials. A:In my layout of the page, and B: a page which show a list of results

A: recieves data from an API, in this case a bool

B: I want to disable/enable button depending on the bool

I've tried simple state management https://vuejs.org/v2/guide/state-management.html#Simple-State-Management-from-Scratch which did not work I've tried EventBus I've tried saving in sessionStorage and using Getters and Seets, eventhandlers, and various packages to get a "sessionStorageChanged" event. Nothing.

Is it really not possible for me to get data from app.Axxxx to app.Bxxxx?




Aucun commentaire:

Enregistrer un commentaire