Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
ea8c9849b4e541342a47329e4589fd8e438003f9
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: 50
Mode: markdown
Binary: false
Hang on, we reloading big blames...
42a6db9c
[//]: #@corifeus-header
c6f22a88
370361d2
c6f22a88
[![Build Status](https://travis-ci.org/patrikx3/ng2-compile-html.svg?branch=master)](https://travis-ci.org/patrikx3/ng2-compile-html)
fe5ef982
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/patrikx3/ng2-compile-html/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/patrikx3/ng2-compile-html/?branch=master)
2f85f8e7
[![Code Coverage](https://scrutinizer-ci.com/g/patrikx3/ng2-compile-html/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/patrikx3/ng2-compile-html/?branch=master) [![Trello](https://img.shields.io/badge/Trello-p3x-026aa7.svg)](https://trello.com/b/gqKHzZGy/p3x)
370361d2
42a6db9c
[//]: #corifeus-header:end
e0d3f36d
# ng2-compile-html
860a1b03
87841bb8
###The NPM is moved from
ea8c9849
87841bb8
```p3x-ng2-compile-html```
ea8c9849
87841bb8
to
ea8c9849
87841bb8
```ng2-compile-html```.
aedb93b3
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.
860a1b03
a2110330
##Install
4be1332c
c6f22a88
```bash
aedb93b3
npm install ng2-compile-html
c6f22a88
```
d9b51825
## Dev environment end test
6c890dd6
```bash git clone https://github.com/patrikx3/ng2-compile-html.git cd ng2-compile-html npm install
38a7e496
node_modules/.bin/webdriver-manager update
7d4eee12
grunt default|run
6c890dd6
``` [http://localhost:8080](http://localhost:8080)
c6f22a88
##Usage
3f5778d5
4be1332c
###HTML
7a8f2e42
503f2b36
```html
88c62b72
<div #container></div>
814ae94c
<div [p3x-compile-html]="data2" [p3x-compile-html-ref]="ref" [p3x-compile-html-imports]="importsLikeMaterialEtc"></div>
1fab801c
```
4be1332c
###TypeScript
e97b3fae
Check out the example, here [test/angular2/app/Page.ts](test/angular2-webpack/app/Page.ts).
8622b78a
###Info
e97b3fae
Angular 2 tries to camelCase all attributes, for me it is still HTML, so my selectors always ```kebab-case```.
503f2b36
2f85f8e7
42a6db9c
[//]: #@corifeus-footer
370361d2
2f85f8e7
[by Patrik Laszlo](http://patrikx3.tk)
370361d2
7d4eee12
[//]: #@corifeus-footer:end