Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
ee184ea2aab23f7dba87398c46735bed6d5ee9c0
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: 13
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;
10d1a243
@Input() p3xCompileHtmlImports: any[];
4210678b
976a970c
update() {
503f2b36
this.service.compile({ template: this.p3xHtml, 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 ) {} }