In App.module:
import ToastrModule in appModule
ToastrModule.forRoot({
timeOut: 3000,
preventDuplicates: true,
}),
In inner component
this.toastr.error("test err");
it is taking time to display, arount 30 to 40 sec.
In App.module:
import ToastrModule in appModule
ToastrModule.forRoot({
timeOut: 3000,
preventDuplicates: true,
}),
In inner component
this.toastr.error("test err");
it is taking time to display, arount 30 to 40 sec.
I manage to configure the time Toaster message displays using the following configuration
import { ToastrModule } from 'ngx-toastr';
@NgModule({
declarations: [
.....
],
imports: [
....,
ToastrModule.forRoot({ timeOut: 7500,
extendedTimeOut: 7500,
preventDuplicates: true })
],
})