Angular Pipe that replaces all :emoji: with the actual emoji
npm install angular-emojify
import { EmojifyModule } from 'angular-emojify';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
EmojifyModule
],
bootstrap: [ AppComponent ],
})
export class AppModule {}
@Component({
// ...
})
class AppComponent() {
description: string = `It's a :rocket:`;
}
<p> {{ description | emojify }} </p>
Outputs: It's a :rocket: