ibufu / vue2-scrollspy

Scrollspy for Vue2
https://ibufu.github.io/vue2-scrollspy/
MIT License
135 stars 32 forks source link

Add cdn for use in browser #26

Closed rklak closed 6 years ago

rklak commented 6 years ago

I have a simple Vue js app written in javascript without node js support. It would be great to use this library in browser by some CDN.

ibufu commented 6 years ago

done

rklak commented 6 years ago

[Vue warn]: Failed to resolve directive: scroll-spy-active

How to add it to Vue? what is the object name?

ibufu commented 6 years ago

https://jsfiddle.net/ibufu/nw0zczLx/ It automatically calls Vue.use() if Vue is available as a global variable.