p3x-angular-compile
Advanced tools
Comparing version 4.1.345-36 to 4.1.348-37
{ | ||
"name": "p3x-angular-compile", | ||
"version": "4.1.345-36", | ||
"version": "4.1.348-37", | ||
"corifeus": { | ||
@@ -5,0 +5,0 @@ "prefix": "p3x-", |
@@ -79,12 +79,27 @@ [//]: #@corifeus-header | ||
If you want custom angular modules: | ||
### Custom module | ||
If you wish to customize the dynamic compilation: | ||
```html | ||
<div [p3x-compile]="string" | ||
[p3x-compile-ctx]="youGetAContextToDoWithItAnything" | ||
[p3x-compile-module]="ngModule"> | ||
</div> | ||
<div *ngIf="true" [p3x-compile]="data" [p3x-compile-ctx]="context" [p3x-compile-module]="module"></div> | ||
``` | ||
```typescript | ||
export class Page { | ||
data: string = "<div>It is working</div>"; | ||
module: NgModule= { | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA] | ||
} | ||
context: Page; | ||
constructor() { | ||
this.context = this; | ||
} | ||
} | ||
``` | ||
### Options | ||
@@ -145,3 +160,3 @@ The templates are cached. | ||
--- | ||
[**P3X-ANGULAR-COMPILE**](https://pages.corifeus.tk/angular-compile) Build v4.1.344-36 | ||
[**P3X-ANGULAR-COMPILE**](https://pages.corifeus.tk/angular-compile) Build v4.1.347-37 | ||
@@ -148,0 +163,0 @@ [Corifeus](http://www.corifeus.tk) by [Patrik Laszlo](http://patrikx3.tk) |
48355
165