@ng-doc/app
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
27 lines (24 loc) • 1.35 kB
TypeScript
import * as i0 from '@angular/core';
import { OnChanges, EventEmitter, ElementRef, ViewContainerRef, ApplicationRef, Injector, Renderer2, SimpleChanges } from '@angular/core';
import { SafeHtml } from '@angular/platform-browser';
import { NgDocPageProcessor } from '@ng-doc/app/interfaces';
/**
* Base processor class to create a processor directive that will be used to replace
* html nodes with an Angular component.
*/
declare class NgDocPageProcessorComponent implements OnChanges {
html: SafeHtml;
afterRender: EventEmitter<void>;
processors: Array<NgDocPageProcessor<unknown>>;
customProcessors: Array<NgDocPageProcessor<unknown>>;
protected readonly elementRef: ElementRef<HTMLElement>;
protected readonly viewContainerRef: ViewContainerRef;
protected readonly applicationRef: ApplicationRef;
protected readonly injector: Injector;
protected readonly renderer: Renderer2;
ngOnChanges({ html }: SimpleChanges): void;
private process;
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPageProcessorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocPageProcessorComponent, "[ngDocPageProcessor]", never, { "html": { "alias": "ngDocPageProcessor"; "required": true; }; }, { "afterRender": "afterRender"; }, never, ["*"], true, never>;
}
export { NgDocPageProcessorComponent };