UNPKG

@ipi-soft/ng-components

Version:

Custom Angular Components

22 lines (21 loc) 1.04 kB
import { ViewContainerRef } from '@angular/core'; import { OverlayService } from './../overlay.service'; import * as i0 from "@angular/core"; export declare class LoaderService { private overlayService; constructor(overlayService: OverlayService); private viewContainerRef; private appContainerElement; private loaderRef; /** * Call this method globally in order to set a more global ViewContainerRef * @param viewContainerRef - the Host Container Ref where we want the Loader to be attached. i.e the App Component or Layout Component * @param appContainerElement - An optional app container selector. When provided it will set opacity 0.4 to that container when Loader is shown. Example - '.app-container' */ init(viewContainerRef: ViewContainerRef, appContainerElement?: string): void; show(): void; hide(): void; private setAppContainerOpacity; static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>; }