Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
5ff1c2ddc406cd0a0ed8a0b381e5fdde99e554ce
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: 24
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)
26221cf7
Angular 2 Service/Attribute to compile an HTML into a component
c6f22a88
It is only using ```TypeScript``` right now. It can be built though.
7a8f2e42
ee184ea2
Right now, only ```zone.js@0.7.2``` show errors right. Probably 0.7.6 will be good.
10d1a243
a2110330
##Install
4be1332c
c6f22a88
```bash
4b1761c2
npm install p3x-ng2-compile-html
c6f22a88
```
6c890dd6
##Test ```bash git clone https://github.com/patrikx3/ng2-compile-html.git cd ng2-compile-html npm install grunt run ``` [http://localhost:8080](http://localhost:8080)
c6f22a88
##Usage
3f5778d5
4be1332c
###HTML
7a8f2e42
503f2b36
```html
88c62b72
<div #container></div> <div [p3xCompileHtml]="data2" [p3xCompileHtmlRef]="ref"></div>
1fab801c
```
4be1332c
###TypeScript
6ec57149
Check out the example, here [test/angular2/app/Page.ts](test/angular2/app/Page.ts).
503f2b36
26221cf7
by [Patrik Laszlo](http://patrikx3.tk)