-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
How to use app.config.globalProperties.xxx in setup? #2233
Comments
here is my code(https://codesandbox.io/s/youthful-gauss-h452m?file=/src/components/Greet.vue), use "proxy" can work, "ctx" is internal property of "ComponentInternalInstance". |
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow. The global properties are meant to be used by the option api. Create |
Version
3.0.0
Reproduction link
https://github.com/XingXiaoWu/vue-question
Steps to reproduce
1.main.js
2.APP.vue
What is expected?
Build can print the name later
What is actually happening?
ctx.name is undefiend
In the url globalproperties .
It tells how it is used in the mounted.
but don't say how to use in setup.
If convenient, can you document how to use it in setup
The text was updated successfully, but these errors were encountered: