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

Access global injected props In from Vue 2 to Vue 3 #11

Open
RezaErfani67 opened this issue Nov 21, 2021 · 2 comments
Open

Access global injected props In from Vue 2 to Vue 3 #11

RezaErfani67 opened this issue Nov 21, 2021 · 2 comments

Comments

@RezaErfani67
Copy link

RezaErfani67 commented Nov 21, 2021

i want to convert vue 2 to vue 3 app
Does it support injected prop to global Vue instance?
For example this.$dlg or this.$toast and so on...
If yes , how to access ?

@privatenumber
Copy link
Owner

I think it would depend on how those properties are created.

For example, if they are created like this, it should work, but only within the Vue 2 apps:

Vue.prototype.$toast = function (methodOptions) {
	// some logic ...
}

@RezaErfani67 RezaErfani67 changed the title Access global injected vue Access global injected props In from Vue 2 to Vue 3 Nov 24, 2021
@RezaErfani67
Copy link
Author

i mean Vue 3 app

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

2 participants