epicmaxco / epic-spinners

Easy to use css spinners collection with Vue.js integration
https://epic-spinners.epicmax.co
3.84k stars 357 forks source link

Register globally? #36

Closed ghost closed 4 years ago

ghost commented 5 years ago

Hi!

I tried registering it globally, but to no avail.

What I tried was: import { HollowDotsSpinner } from 'epic-spinners'

Vue.component('hollow-dots-spinner', { components: { HollowDotsSpinner } }) Vue.use(hollow-dots-spinner)

Also tried passing it as a value in new vue as well as components but to no avail. Didn't find anything about this in the docs, or did I miss something completely?

Thanks for any inputs here.

trlehmbecker commented 4 years ago

I was able to register it like so

import { HollowDotsSpinner } from 'epic-spinners'
Vue.component('hollow-dots-spinner', HollowDotsSpinner);