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
How can I configure the progress bar for all api calls within Vue Resource Interceptors so that if any API is called it will automatically shows the progress bar on request made and finish/fail according to the response.
I'm using the below code for progress bar and interceptors.
@chiaweilee same I am also trying but not getting working in vue-resource intercepter can you please give one simple example.
I am trying let vm = new Vue({}); Vue.http.interceptors.push((request, next) => { vm.$Progress.start(); // for every request start the progress })
It is same in main.js. still it is showing error that can not read start of undefined.
How can I configure the progress bar for all api calls within Vue Resource Interceptors so that if any API is called it will automatically shows the progress bar on request made and finish/fail according to the response.
I'm using the below code for progress bar and interceptors.
import VueProgressBar from 'vue-progressbar'
const options = {
...
}
Vue.use(VueProgressBar, options)
Vue.http.interceptors.push((request, next) => {
next((response) => {
/** some response content**/
})
})
NOTE: I am not interested to use
axios
. Solution should be on Vue Resource.The text was updated successfully, but these errors were encountered: