toaster npm angular code example
Example 1: install toastr in angular
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!'); }}