ngx-html-bridge
Version:
An Angular Template Parser to convert Angular templates into an array of standard, static HTML strings.
13 lines (12 loc) • 700 B
TypeScript
import type { TmplAstTemplate } from "@angular/compiler";
import type { TmplAstBranchNodeTransformer } from "../../types/index.js";
/**
* Transforms a TmplAstTemplate node into a 2D array of DOM Nodes.
* It dispatches to `transformTmplAstTemplateNgIf` if the template represents an *ngIf directive.
*
* @param template The TmplAstTemplate node to transform.
* @param templates A list of all TmplAstTemplate nodes in the parsed template.
* @param transformTmplAstNodes The recursive function to transform child AST nodes.
* @returns A 2D array of DOM Nodes representing the transformed template.
*/
export declare const transformTmplAstTemplate: TmplAstBranchNodeTransformer<TmplAstTemplate>;