euvl / vue-js-toggle-button

:fish_cake: Vue.js 2 toggle / switch button - simple, pretty, customizable

Home Page:http://vue-js-toggle-button.yev.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how install in single html without main vue only cdn ?

HuantanaCorp opened this issue · comments

i dont understand the question

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' "

you cannot

@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);