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 install in single html without main vue only cdn ? #71

Closed
HuantanaCorp opened this issue Jul 4, 2018 · 4 comments
Closed

how install in single html without main vue only cdn ? #71

HuantanaCorp opened this issue Jul 4, 2018 · 4 comments

Comments

@HuantanaCorp
Copy link

No description provided.

@euvl
Copy link
Owner

euvl commented Jul 4, 2018

i dont understand the question

@euvl euvl closed this as completed Jul 4, 2018
@HuantanaCorp
Copy link
Author

l've a simple page in html with cdn vue
https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.common.js
here l cant use import so how install toggle without "import ToggleButton from 'vue-js-toggle-button' "

@euvl
Copy link
Owner

euvl commented Jul 4, 2018

you cannot

@joelnordell
Copy link

@HuantanaCorp @euvl you can do it like this:

<head>
   ... your other scripts here ...
   <script src="//cdn.jsdelivr.net/npm/vue-js-toggle-button@1.3.3"></script>
</head>

And then before you construct your Vue application, add this:

window['vue-js-toggle-button'].default.install(Vue);

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

3 participants