vue-examples
vue-examples copied to clipboard
The description of "Global Properties" was incorrect
https://skirtles-code.github.io/vue-examples/patterns/global-properties.html
This article say that
the lack of availability in setup is a major problem, so let's consider some other alternatives to globalProperties.
This statement has a mistake. we can use getCurrentInstance method to get the gobal properties.
` import { ref, getCurrentInstance } from 'vue';
const { proxy } = getCurrentInstance(); `
https://github.com/vuejs/core/issues/2233