remove old toast from ngx-toastr code example
Example 1: how to add toaster in angular 9
npm install ngx-toastr --save
Example 2: toaster service
import { ToastrService } from 'ngx-toastr'; @Component({...})export class YourComponent { constructor(private toastr: ToastrService) {} showSuccess() { this.toastr.success('Hello world!', 'Toastr fun!'); }}