-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
Hi,
I'm using vue-resource and I'd like to use vue-spinner inside interceptors to show/hide the spinner on any ajax request. I don't know if it's possible to reference a vue-spinner component inside the interceptor. I have done the following but with no success: (I'm using vueify)
var PulseLoader = require('vue-spinner/dist/vue-spinner.min').PulseLoader;
Vue.http.interceptors.push((request, next) => {
this.loading = true;
next((response) => {
this.loading = false;
});
});
new Vue({
el: '#grid-manager',
components: { 'pulse-loader': PulseLoader},
....and in the root vue instance i have:
<pulse-loader :loading="loading" :color="color" :size="size"></pulse-loader>
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels