Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The description of "Global Properties" was incorrect #1

Open
WangZhenHao opened this issue Jan 29, 2024 · 0 comments
Open

The description of "Global Properties" was incorrect #1

WangZhenHao opened this issue Jan 29, 2024 · 0 comments

Comments

@WangZhenHao
Copy link

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();
`

vuejs/core#2233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant