@ngx-loading-bar/http-client
Version:
Automatic page loading / progress bar for Angular
15 lines (14 loc) • 793 B
TypeScript
import { LoadingBarService } from '@ngx-loading-bar/core';
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpContextToken } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Provider } from '@angular/core';
import * as i0 from "@angular/core";
export declare const NGX_LOADING_BAR_IGNORED: HttpContextToken<boolean>;
export declare class LoadingBarInterceptor implements HttpInterceptor {
private loader;
constructor(loader: LoadingBarService);
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingBarInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingBarInterceptor>;
}
export declare function provideLoadingBarInterceptor(): Provider;