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