greyby / vue-spinner

vue spinners
MIT License
1.81k stars 176 forks source link

Doesn't work in Vue.js 2.0 #14

Closed guyver-dash closed 7 years ago

guyver-dash commented 7 years ago

Please add this to your documentation. I thought there was a problem in implementing but after I read the issues and found out that it doesn't really work in Vue.js 2.0. Nice project anyway and I hope you will support Vue.js 2.0. TY

Matoo125 commented 7 years ago

Thanks for note. I just also tried to use with 2.0, so you saved my time looking for a problem.

greyby commented 7 years ago

Thank you for the feedback. I had added notes to README.

justinledford commented 7 years ago

This worked fine for me in Vue 2

amoshydra commented 7 years ago

Can confirm. This is working for me on Vue 2.3.4

<template>
  <div>
    <vue-spinner :loading="isLoading" color="#102938" size="20px"></vue-spinner>
  </div>
</template>

<script>
import SyncLoader from 'vue-spinner/src/SyncLoader';
export default {
  components: {
    'vue-spinner': SyncLoader,
  },
  data() {
    return {
      isLoading: false,
    };
  },
};
</script>
arifhussain353 commented 7 years ago

@amoshydra yes working with "vue": "^2.3.4"

shtse8 commented 7 years ago

Yes, it is working with vue 2