UNPKG

@dotglitch/ngx-common

Version:

Angular components and utilities that are commonly used.

20 lines (19 loc) 774 B
import * as i0 from "@angular/core"; /** * Service that installs CSS/JS dynamically */ export declare class DependencyService { private document; constructor(document: Document); /** * Install a Javascript file into the webpage on-demand * @param id Unique identifier for the JS script * @param src URL of the script * @param globalkey A global object the script will provide. * Providing this will ensure a promise only resolves after the * specified global object is provided, with a timeout of 500ms */ loadScript(id: string, src: string, globalkey?: string): Promise<void>; static ɵfac: i0.ɵɵFactoryDeclaration<DependencyService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<DependencyService>; }