- angular-compile.git
- src
- CompileHtmlAttribute.ts
This file ( 669B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
import {Directive, ElementRef, Input, Injectable, ViewContainerRef, OnInit} from '@angular/core';
import { CompileHtmlService } from './CompileHtmlService';
@Directive({ selector: '[p3xCompileHtml]' })
@Injectable()
export class CompileHtmlAttribute {
@Input('p3xCompileHtml') p3xHtml: string;
@Input() p3xCompileHtmlRef: any;
ngOnInit() {
this.service.compile({
template: this.p3xHtml,
container: this.container,
ref: this.p3xCompileHtmlRef
})
}
constructor(
private el: ElementRef,
private container: ViewContainerRef,
private service: CompileHtmlService
) {}
}