UNPKG

ngx-load

Version:

A simple angular library for adding loaders.

24 lines (23 loc) 1.11 kB
import { ElementRef, OnDestroy, OnInit } from '@angular/core'; import { Overlay } from "@angular/cdk/overlay"; import { Observable, Subscription } from "rxjs"; import { LoaderConfiguration } from "../core/loader.configuration"; import * as i0 from "@angular/core"; export declare class OverlayLoaderDirective implements OnInit, OnDestroy { private elementRef; private overlay; private configuration; overlayRef: import("@angular/cdk/overlay").OverlayRef; currentSubscription: Subscription | undefined; set loadOverlayLoader(value: Observable<any>); constructor(elementRef: ElementRef, overlay: Overlay, configuration: LoaderConfiguration); ngOnInit(): void; ngOnDestroy(): void; private unsubscribeCurrentSubscription; private subscribe; private createOverlay; private attachLoader; private detachLoader; static ɵfac: i0.ɵɵFactoryDeclaration<OverlayLoaderDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayLoaderDirective, "[loadOverlayLoader]", never, { "loadOverlayLoader": "loadOverlayLoader"; }, {}, never, never, false>; }