@ng-maps/core
Version:
**@ng-maps/core** is a simple, modular and tree-shakable library for displaying google-maps inside an angular application
28 lines (27 loc) • 1.04 kB
TypeScript
import * as i0 from "@angular/core";
export declare class ScriptLoaderService {
document: Document;
private head;
private alreadyLoaded;
constructor(document: any);
private observeLoad;
private createScriptElement;
private createCSSElement;
/**
* Dynamically loads the given script
*
* @param src The url of the script to load dynamically
* @param integrity set integrity check value
* @returns Observable<UIEvent> Observable that will be resolved once the script has been loaded.
*/
loadScript(src: string, integrity?: string): Promise<UIEvent | void>;
/**
* Dynamically loads the given CSS file
*
* @param href The url of the CSS to load dynamically
* @returns Observable<UIEvent> Promise that will be resolved once the CSS file has been loaded.
*/
loadCSS(href: string): Promise<UIEvent | void>;
static ɵfac: i0.ɵɵFactoryDeclaration<ScriptLoaderService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ScriptLoaderService>;
}