UNPKG

ng-markdown-table

Version:

`ng-markdown-table` is an Angular wrapper component for the markdown-table library. It simplifies the generation of Markdown tables in Angular projects by providing an easy-to-use component interface.

41 lines (36 loc) 1.61 kB
import * as i0 from '@angular/core'; import { input, Component } from '@angular/core'; import { markdownTable } from 'markdown-table'; class NgMarkdownTableComponent { markdownTable = markdownTable; table = input.required(); options = input(); static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgMarkdownTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.5", type: NgMarkdownTableComponent, isStandalone: true, selector: "ng-markdown-table", inputs: { table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: ` <pre>{{ markdownTable( this.table(), this.options() ) }}</pre> `, isInline: true, styles: [""] }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: NgMarkdownTableComponent, decorators: [{ type: Component, args: [{ selector: 'ng-markdown-table', standalone: true, template: ` <pre>{{ markdownTable( this.table(), this.options() ) }}</pre> ` }] }] }); /* * Public API Surface of ng-markdown-table */ /** * Generated bundle index. Do not edit. */ export { NgMarkdownTableComponent }; //# sourceMappingURL=ng-markdown-table.mjs.map