UNPKG

@dotglitch/ngx-common

Version:

Angular components and utilities that are commonly used.

19 lines (18 loc) 724 B
import { Injector, ElementRef, ComponentFactoryResolver } from '@angular/core'; import { DynamicHTMLOptions } from './types'; import * as i0 from "@angular/core"; export interface DynamicHTMLRef { check: () => void; destroy: () => void; } export declare class DynamicHTMLRenderer { private config; private cfr; private injector; private componentFactories; private componentRefs; constructor(config: DynamicHTMLOptions, cfr: ComponentFactoryResolver, injector: Injector); renderInnerHTML(elementRef: ElementRef, html: string): DynamicHTMLRef; static ɵfac: i0.ɵɵFactoryDeclaration<DynamicHTMLRenderer, never>; static ɵprov: i0.ɵɵInjectableDeclaration<DynamicHTMLRenderer>; }