Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
6ec5714958ceff52933ee8d0a6df07bbb0f6dc03
Branches
master
Tags
1.1.129-287
1.1.113-149
1.1.108-143
1.1.95-138
1.1.92-119
1.0.35-18
1.0.13-14
Files
Commits
Log
Graph
Stats
angular-compile.git
src
CompileHtmlAttribute.ts
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 8
Mode: application/typescript
Binary: false
Hang on, we reloading big blames...
976a970c
import {Directive, Input, Injectable, ViewContainerRef, OnInit, OnChanges, SimpleChanges} from '@angular/core';
503f2b36
import { CompileHtmlService } from './CompileHtmlService'; @Directive({ selector: '[p3xCompileHtml]' }) @Injectable()
976a970c
export class CompileHtmlAttribute implements OnInit, OnChanges{
503f2b36
@Input('p3xCompileHtml') p3xHtml: string; @Input() p3xCompileHtmlRef: any;
976a970c
update() {
503f2b36
this.service.compile({ template: this.p3xHtml, container: this.container, ref: this.p3xCompileHtmlRef }) }
976a970c
ngOnInit() { this.update(); } ngOnChanges(changes: SimpleChanges) { this.update(); }
503f2b36
constructor( private container: ViewContainerRef, private service: CompileHtmlService ) {} }