UNPKG

@ng-doc/builder

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>

20 lines 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.demoAction = demoAction; const core_1 = require("@ng-doc/core"); /** * Render demo point on the page, it will be rendered by the application * @param componentName - The title of the component class to render * @param options - Options for configuring the action * @returns The action output */ function demoAction(componentName, options) { return () => { return { output: `<ng-doc-demo componentName="${componentName}" indexable="false"> <div id="options">${(0, core_1.escapeHtml)(JSON.stringify(options ?? {}))}</div> </ng-doc-demo>`, }; }; } //# sourceMappingURL=demo.action.js.map