UNPKG

841 BTypeScriptView Raw
1import * as i0 from "@angular/core";
2/**
3 * Service to control the global page spinner.
4 */
5export declare class NbSpinnerService {
6 private document;
7 private loaders;
8 private selector;
9 constructor(document: any);
10 /**
11 * Appends new loader to the list of loader to be completed before
12 * spinner will be hidden
13 * @param method Promise<any>
14 */
15 registerLoader(method: Promise<any>): void;
16 /**
17 * Clears the list of loader
18 */
19 clear(): void;
20 /**
21 * Start the loader process, show spinnder and execute loaders
22 */
23 load(): void;
24 private executeAll;
25 private showSpinner;
26 private hideSpinner;
27 private getSpinnerElement;
28 static ɵfac: i0.ɵɵFactoryDeclaration<NbSpinnerService, never>;
29 static ɵprov: i0.ɵɵInjectableDeclaration<NbSpinnerService>;
30}