Skip to content

Bind page props to root instance? #1015

Answered by ajnsn
WalrusSoup asked this question in Help (Vue)
Discussion options

You must be logged in to vote

Hey @WalrusSoup
what you are currently doing is imHo totally fine. You could also use a global composable or store (like Pinia) or provide/inject but in the end the app.config.globalProperties is the easiest way to access a property globally without defining/importing over and over again.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcelodelta
Comment options

Answer selected by WalrusSoup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants