increase duration in toaster angular code example Example: install toastr in angular npm install ngx-toastr --save