Skip to content

Commit

Permalink
Add docs about NgModule
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonatan committed Sep 14, 2016
1 parent aa1b222 commit 508f01d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@ This is just a wrapper for [Autolinker.js](https://github.com/gregjacobs/Autolin
## Installation
`npm install --save angular2-linky`

Import `LinkyModule` or manually declare `LinkyPipe` in your app module.
```ts
import { LinkyModule } from 'angular2-linky';

@NgModule({
imports: [
LinkyModule
]
})
class YourAppModule {}
```

## Usage

Use **linky** pipe with **[innerHTML]** (or outerHTML, depends on you) binding to get HTML correctly rendered:

`<span [innerHTML]="yourText | linky"></span>`
Expand Down

0 comments on commit 508f01d

Please sign in to comment.