I have a global status variable, STATUS
, that I'd like to inject into essentially all of my Vue components, given so many of them have to test against the status of API calls.
Two questions:
- Does this kind of go against a Vue paradigm, and I should find a different solution?
- If not, what is the best way to do this (add to
window
, etc...)?