Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
0fe6312b85aec6e5052e25b60e46374fa02f170e
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: 21
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';
814ae94c
@Directive({ selector: '[p3x-compile-html]' })
503f2b36
@Injectable()
976a970c
export class CompileHtmlAttribute implements OnInit, OnChanges{
503f2b36
814ae94c
@Input('p3x-compile-html') p3xHtml: string;
503f2b36
814ae94c
@Input('p3x-compile-html-ref') p3xCompileHtmlRef: any;
503f2b36
814ae94c
@Input('p3x-compile-html-imports') p3xCompileHtmlImports: any[];
4210678b
976a970c
update() {
503f2b36
this.service.compile({
55f7ead8
template: this.p3xHtml,
503f2b36
container: this.container,
4210678b
ref: this.p3xCompileHtmlRef,
10d1a243
imports: this.p3xCompileHtmlImports
503f2b36
}) }
976a970c
ngOnInit() { this.update(); } ngOnChanges(changes: SimpleChanges) { this.update(); }
503f2b36
constructor( private container: ViewContainerRef, private service: CompileHtmlService ) {} }