You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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)
Thanks!
The text was updated successfully, but these errors were encountered: