UNPKG

ngx-dynamic-hooks

Version:

Automatically insert live Angular components into a dynamic string of content (based on their selector or any pattern of your choice) and render the result in the DOM.

42 lines (41 loc) 2.07 kB
import { RendererFactory2 } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { CompletePlatformService } from './platformService'; import * as i0 from "@angular/core"; /** * General implementation of PlatformService suited for both the standard browser and server environments */ export declare class DefaultPlatformService implements CompletePlatformService { private document; private rendererFactory; private sanitizer; private renderer; constructor(document: Document, rendererFactory: RendererFactory2, sanitizer: DomSanitizer); getNgVersion(): number | null; sanitize(content: string): string; createElement(tagName: string): Element; sortElements(a: Element, b: Element): number; cloneElement(element: Element): Node; getTagName(element: Element): string; getOpeningTag(element: any): any; getClosingTag(element: any): any; getAttributeNames(element: Node): any; getAttribute(element: Element, attributeName: string): any; setAttribute(element: Element, attributeName: string, value: string): void; removeAttribute(element: any, attributeName: string): void; getParentNode(element: Node): Node | null; querySelectorAll(parentElement: Document | Element, selector: string): Element[]; getChildNodes(node: Node): Node[]; appendChild(parentElement: Node, childElement: Node): void; insertBefore(parentElement: Node, childElement: Node, referenceElement: Node): void; clearChildNodes(element: Node): void; removeChild(parentElement: Node, childElement: Node): void; getInnerContent(element: Element): string; setInnerContent(element: Element, content: string): void; isTextNode(element: Node): boolean; createTextNode(content: string): Text; getTextContent(element: Node): string | null; dispatchEvent(element: Node, name: string, payload: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPlatformService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<DefaultPlatformService>; }