1.1.1 • Published 5 years ago
@quanterion/ng-template v1.1.1
Angular Template Compiler
Compile your Angular 2.x - Angular 8.x templates for print, emails, etc
Usage
let data = { name: 'Roman' };
let element = htmlToElement(`<div>{{name}}</div>`);
await compileTemplate(result, data);
Features
- string interpolation
- ng-template
- ng-container
- ngIf + ngIf as
- *ngFor
- style.xxx="value"
- style.xxx.px="value"
- class.xxx="value"
1.1.1
5 years ago