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

How to cancel/unload an instance after it's created #40

Open
lukesturgeon opened this issue Sep 9, 2019 · 1 comment
Open

How to cancel/unload an instance after it's created #40

lukesturgeon opened this issue Sep 9, 2019 · 1 comment

Comments

@lukesturgeon
Copy link

I have vue-typer running, but after I move to another page it's still running in the background and I'm not sure how to unload or stop it. Any ideas?

@shoxadomokai
Copy link

shoxadomokai commented Mar 22, 2020

What I've done is give it a ref e.g <vue-typer ref="vueTyper"></vue-typer>.

Then in the destroyed hook of the parent component, I call this.$destroy(this.$refs.vueTyper).

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