0.1.0 • Published 8 years ago

angular2-emojify v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

angular2-emojify

npm version

Angular Pipe that replaces all :emoji: with the actual emoji

Install

npm install angular2-emojify

EmojifyModule

import { EmojifyModule } from 'angular2-emojify';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    EmojifyModule
  ],
  bootstrap: [ AppComponent ],
})
export class AppModule {}

EmojifyPipe

@Component({
  // ...
})
class AppComponent() {
  description: string = `It's a :rocket:`;
}
<p> {{ description | emojify }} </p>

Outputs: It's a :rocket: