Adder Global Loading spiner for api calls
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { HTTP_INTERCEPTORS } from "@angular/common/http";
|
||||
|
||||
import { AuthInterceptor } from "./auth.interceptor";
|
||||
import { LoadingInterceptor } from "./loading.interceptor";
|
||||
|
||||
export const httpInterceptorProviders = [
|
||||
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true}
|
||||
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true},
|
||||
{provide: HTTP_INTERCEPTORS, useClass: LoadingInterceptor, multi: true}
|
||||
]
|
||||
Reference in New Issue
Block a user