1.0.0 • Published 6 years ago

angular-emojify v1.0.0

Weekly downloads
129
License
MIT
Repository
github
Last release
6 years ago

angular-emojify

npm version

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

Install

npm install angular-emojify

EmojifyModule

import { EmojifyModule } from 'angular-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: