0
我正在使用Restangular攔截器來處理狀態代碼爲412,409等錯誤。 但我沒有在requestInterceptor函數中獲取狀態。 我已經使用Typescript聲明瞭Restangular RequestInterceptor。Restangular Error Interceptor中的意外令牌ü
在我app.ts文件,
app.run(Restangular){
Restangular.setErrorInterceptor(function(response) {//code to handle error});
}