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

using it in other vue ? #5

Closed
sinamiandashti opened this issue Aug 20, 2017 · 3 comments
Closed

using it in other vue ? #5

sinamiandashti opened this issue Aug 20, 2017 · 3 comments

Comments

@sinamiandashti
Copy link

hi

its not possible to use this inside a vue template?

@sinamiandashti
Copy link
Author

fixed by this

Vue.component('spin', Spinner);

in your vue file:
<vue-simple-spinner size="big" message="test"></vue-simple-spinner>

@dzwillia
Copy link
Owner

Hi there!

If you take a look at the index.js file, you'll see that I am including the Vue.component() call there:

import VueSimpleSpinner from './components/Spinner.vue'

// expose component to global scope
if (typeof window !== 'undefined' && window.Vue) {
  Vue.component('vue-simple-spinner', VueSimpleSpinner)
}

export { VueSimpleSpinner }

export default VueSimpleSpinner

@dzwillia
Copy link
Owner

@sinamiandashti Was this helpful to you? Did it work?

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

2 participants