Skip to content

Releases: scttcper/ngx-toastr

5.0.5

24 Mar 22:19
Compare
Choose a tag to compare

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

24 Mar 04:34
Compare
Choose a tag to compare

ℹ️ 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

14 Mar 15:59
Compare
Choose a tag to compare

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

21 Feb 23:43
Compare
Choose a tag to compare

Fixes:

  • shows progress bar again after hover #72
  • tapToDismiss = false should be working now

New:

  • 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

4.2.1

09 Feb 15:33
Compare
Choose a tag to compare

fixes #66 and main is now the commonjs bundle

4.2.0

09 Feb 07:59
Compare
Choose a tag to compare

Renamed toastr-ng2 to ngx-toastr. Please point your package.json to the new name.

some slight changes to toast component. Toast classes are now applied before activate()

4.1.1

20 Jan 16:20
Compare
Choose a tag to compare

minor release. upgraded build dependencies. angular-cli26, rollup, etc.

4.1.0

17 Jan 21:39
Compare
Choose a tag to compare

Adds a onActivateTick Toast Option. fires a ApplicationRef.tick() from the toast component when activated. Might help show the toast if you are showing it from a websocket
See issue #53

4.0.0

09 Jan 07:38
Compare
Choose a tag to compare
  • 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

3.2.5

22 Dec 19:38
Compare
Choose a tag to compare

Fixes an Angular 2.4.x error.