Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Neat! this is nice. Commented Apr 27, 2021 at 7:19
  • As Vue 3 gets more popular, this should be higher. It's really easy compared to other solutions and less confusing if you're using Vue 3 and single-file components. Commented Jun 5, 2021 at 8:09
  • Are the globalProperties required to start with a '$'? Commented Mar 26, 2022 at 4:48
  • 1
    this.$myGlobalProperty is inaccessible in another component for me. I used the app instance in main.js, idk if that's wrong Commented Apr 28, 2024 at 9:21
  • Seems this is only available in the options Api, as I read in this answer Commented Apr 28, 2024 at 9:50