error toaster code example
Example: toaster service
import { ToastrService } from 'ngx-toastr'; @Component({...})export class YourComponent { constructor(private toastr: ToastrService) {} showSuccess() { this.toastr.success('Hello world!', 'Toastr fun!'); }}