Adder Global Loading spiner for api calls

This commit is contained in:
2024-04-28 15:32:15 +05:30
parent 1d53333667
commit c1250b7649
11 changed files with 178 additions and 9 deletions
+3 -1
View File
@@ -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}
]