Bot releases are hidden (Show)
closes #158 adds ToastrConfig as an alias of IndividualConfig https://github.com/scttcper/ngx-toastr/commit/5f7e99218e4c4cdc17b013d70c262ee547aaf1fa
fixed newestOnTop config param. Changed the way defaults are set. https://github.com/scttcper/ngx-toastr/commit/66230af46ba645ae42b2c6b6e1e3ad74dec058e8
Silences warning on install with Angular 4+
Internal Changes:
The ActiveToast that is passed back from creating a toast now has a bit more type information.
ToastRef is now used with a rx/subject to close toasts from the service instead of reaching into the toast component directly.
npm install @angular/animations --save
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
What happened to 5.0.0?
I'm not sure.
Fixed bugs for component inheritance. If you were extending toast you should update the constructor. The values are now protected instead of private which allows for easier inheritance without Angular AoT. The constructor is only necessary when not using AoT.
constructor(
protected toastrService: ToastrService,
public data: ToastData,
protected toastRef: ToastRef<any>,
protected appRef: ApplicationRef,
protected sanitizer: DomSanitizer
) {
super(toastrService, data, toastRef, appRef, sanitizer);
}
onAction
observable passed back from toast creation. This can be used in custom toasts to trigger a selection. This has been added to the pink toast in the demo. #39