Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
503f2b36246bf3be1162d2064d2b35d5dd10adba
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
README.md
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 11
Mode: markdown
Binary: false
Hang on, we reloading big blames...
4395ce28
# ng2-compile-html
c6f22a88
[![Build Status](https://travis-ci.org/patrikx3/ng2-compile-html.svg?branch=master)](https://travis-ci.org/patrikx3/ng2-compile-html)
4395ce28
Angular 2 Service to compile an HTML into a component
c6f22a88
It is only using ```TypeScript``` right now. It can be built though. ##Install ```bash npm install --save-dev p3x-ng2-compile-html ``` ##Usage
3f5778d5
Check out the example, here [test/angular2/app/Page.ts](test/angular2/app/Page.ts).
503f2b36
```html <div [p3xCompileHtml]="data"/> ```
3f5778d5
## Run ```bash npm install grunt run ```
34befbf0
In LIVE version, you import like this: ```typescript import { CompileHtmlService } from 'p3x-ng2-compile-html'; ```
503f2b36
instead of:
34befbf0
```typescript import { CompileHtmlService } from '../../../src/CompileHtmlService'; ```
3f5778d5
[http://localhost:8080](http://localhost:8080)