Open
Description
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();
`
Metadata
Metadata
Assignees
Labels
No labels