ng-pell
Version:
An angular wrapper for the pell library
55 lines (41 loc) • 990 B
Markdown
# ng-pell
## What is this
It's a port of [pell](https://github.com/jaredreich/pell) for Angular 4+.
## How do I use it
In a component like this
./example/example.component.ts
```typescript
import { Component } from '/core';
({
selector: 'example-component',
template: `<ng-pell-component [(ngModel)]="html"></ng-pell-component>`
})
export class ExampleComponent {
html: string
}
```
and it must be included in the respective module like this
./example/example.module.ts
```typescript
import {BrowserModule} from '/platform-browser'
import {NgModule} from '/core'
import {ExampleComponent} from './example.component'
import {NgPellModule} from 'ng-pell'
({
declarations: [
ExampleComponent
],
imports: [
BrowserModule,
NgPellModule
],
providers: [],
bootstrap: [ExampleComponent]
})
export class ExampleModule {}
```
## Installation
It can be added to your project like this
```bash
yarn add ng-pell
```