Replies: 1 comment
-
Resolved by having |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After some debate, to get the most benefit out of Vue/VueX it looks like we need 2 layers to the API. One layer for Vue code, and one layer for any other Javascript.
Vue
core
This allows anything Vue to interact with the stores directly, whether its the base modules or something someone else writes. As I understand it, the new Vue code only needs to be able to register with the same Vue instance as R4MP.
The non VueX store object keeps Vue code from having to use the global scope, makes using types easier and keeps the code cleaner.
Other
API to be placed on global scope (
window.RAMP
or whatever we choose to name it this time).This gives a nice interface for non-Vue code, the only things that really change are observables instead of binding and a different prefix for the functions (adding
window.RAMP....
in front)Beta Was this translation helpful? Give feedback.
All reactions