1$ npm install angular-typing-animation --save
2//app.module.ts
3import { TypingAnimationDirective } from 'angular-typing-animation'
4@NgModule({
5 ...
6 declarations: [
7 TypingAnimationDirective,
8 ...
9
10//app.component.html
11<span typingAnimation [typeSpeed]="20" [startDelay]="2000"
12 (complete)="onComplete()">
13</span>