@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
25 lines (24 loc) • 1.06 kB
TypeScript
import { Injector } from '@angular/core';
import { CompilerService } from '@cisstech/nge/services';
import { Observable } from 'rxjs';
import { NgeElementDef } from './nge-element';
import * as i0 from "@angular/core";
export declare class NgeElementService {
private readonly injector;
private readonly compiler;
private readonly registry;
private readonly defineds;
private readonly promises;
constructor(injector: Injector, compiler: CompilerService, elements: NgeElementDef[]);
listUnloadeds(): string[];
/**
* Allows to lazy load a element given it's selector (i.e. tagname).
* If the element selector has been registered, it's according module
* will be fetched lazily
* @param selector selector of the element to load.
*/
loadElement(selector: string): Promise<void>;
loadElements(selectors: string[]): Observable<void[]>;
static ɵfac: i0.ɵɵFactoryDeclaration<NgeElementService, [null, null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgeElementService>;
}