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 use with CDN ? #18

Open
uranik777 opened this issue May 31, 2022 · 1 comment
Open

How to use with CDN ? #18

uranik777 opened this issue May 31, 2022 · 1 comment

Comments

@uranik777
Copy link

How to use vuejs-noty in html file?
I try add

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuejs-noty.min.js"></script>
<script>
	Vue.use(VueNoty);
</script>

but have error:
ReferenceError: VueNoty is not defined

@djdance
Copy link

djdance commented Feb 10, 2023

Vue.use(window['vuejs-noty'].default)

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