Releases: scttcper/ngx-toastr
Releases Β· scttcper/ngx-toastr
5.0.5
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.
5.0.3
βΉοΈ ngx-toastr v4 to v5 breaking changes
- Supports Angular v4 and drops support for anything lower than 2.4.x. Users of Angular less than v2.4 should stay on ngx-toastr v4.x.x
Required actions for Angular v4:
- Install animations
npm install @angular/animations --save
- Add and import in root NgModule
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
What happened to 5.0.0?
I'm not sure.
4.4.0
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);
}
4.3.0
4.2.1
4.2.0
4.1.1
4.1.0
4.0.0
- add a custom ToastInjector - passes toast config to ToastComponent's constructor
- add enableHtml to options and allows using html in message #47
- adds a ToastContainerDirective that allows you to target the div to show toasts #28 find more in the readme.
- removes BrowserModule for lazy loading #51
- upgrade overlay (from material 2) to latest