установить Toastr в угловой
npm install ngx-toastr --save
Annoying Antelope
npm install ngx-toastr --save
import { ToastrService } from 'ngx-toastr'; @Component({...})export class YourComponent { constructor(private toastr: ToastrService) {} showSuccess() { this.toastr.success('Hello world!', 'Toastr fun!'); }}