Open hosseinjalili opened 7 years ago
If you using a global error handler, try to run your toast in a zone, like this:
In constructor add: private ngZone: NgZone
Run toast in a zone: this.ngZone.run(() => { this.toastyService.error({ title: 'Error', msg: 'Error message.', theme: 'bootstrap', showClose: true, timeout: 2000 }); });
Hope this helps :D
[1] bug report
What is the current behavior? ToastyConfig.timeout when set not happening to Toast
What is the expected behavior? when set timeout hide toast on that time in ms or s
Angular version: 4.3.0
Browser: all