0

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:

  1. Does this kind of go against a Vue paradigm, and I should find a different solution?
  2. If not, what is the best way to do this (add to window, etc...)?
sir_thursday
  • 5,270
  • 12
  • 64
  • 118

0 Answers0