ngx-html-bridge
Version:
An Angular Template Parser to convert Angular templates into an array of standard, static HTML strings.
13 lines (12 loc) • 714 B
TypeScript
import type { TmplAstForLoopBlock } from "@angular/compiler";
import type { TmplAstBranchNodeTransformer } from "../../types/index.js";
/**
* Transforms a TmplAstForLoopBlock node into a 2D array of DOM Nodes.
* It handles zero, one, and two iterations of the loop, including the @empty block.
*
* @param forBlock The TmplAstForLoopBlock node to transform.
* @param tmplAstTemplates 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 for loop.
*/
export declare const transformTmplAstForLoopBlock: TmplAstBranchNodeTransformer<TmplAstForLoopBlock>;