ngx-html-bridge
Version:
An Angular Template Parser to convert Angular templates into an array of standard, static HTML strings.
11 lines (10 loc) • 686 B
TypeScript
import type { BridgeOption, HtmlVariation } from "./types/index.js";
export type { BridgeOption, HtmlVariation } from "./types/index.js";
/**
* Parses an Angular template file and returns an array of possible static HTML string variations.
*
* @param templatePath The absolute path to the Angular template file.
* @returns An array of static HTML strings, representing different rendering possibilities of the template.
*/
export declare const parseAngularTemplateFile: (templatePath: string, option?: BridgeOption) => Promise<HtmlVariation[]>;
export declare const parseAngularTemplate: (template: string, templatePath: string, option?: BridgeOption) => Promise<HtmlVariation[]>;