Closed DedalusOsX closed 5 years ago
honestly i would try another version of angular 7. like 7.2.15
I've even upgraded to angular 8.2.8 and toastr 11.0.0. The problem still remains :/
@scttcper found the issue - so this problem occurs if i create a toaster service injectable like so:
in my app.module.ts
{ provide: 'notifier', useClass: ToastrService },
If i call ToastrService directly in the components the issue is gone. Please fix this. It's more convenient to use Injectable!
Thanks
Not sure how you would fix that
You could extend the module or implement your own instead of making only a provider. I think you're missing the forRoot function in yours https://github.com/scttcper/ngx-toastr/blob/master/src/lib/toastr/toastr.module.ts#L22
So here's the problem:
I use Angular 7 and ngx-toastr's 10.2.0 version.
After the notification appears it's not removed, but rather it stays with changing only its own opacity!
app.module.ts
BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, ReactiveFormsModule, ToastrModule.forRoot({ timeOut: 1000, closeButton: true, }),
I've uploaded styles, through angular.json as mentioned in the documentation. Custom style that i applied - I don't believe they interfere, in any case here they are: _toastr.scss `.toast-top-full-width{
.toast-top-right{
} }
and the DOM looks like this after the notification is hidden:
Attaching image from html debugging!