Skip to content

Releases: scttcper/ngx-toastr

1.3.0

01 Sep 23:15
Compare
Choose a tag to compare

Remove use of { provide } from @angular/core which is gone in rc.6

New method of overriding global defaults inspired by angular2-jwt. If you're sticking with defaults importing ToastrModule into your NgModule is enough.

import { NgModule } from '@angular/core';
import { ToastrModule, provideToastr } from 'toastr-ng2';

@NgModule({
  bootstrap: [App],
  declarations: [App],
  // Import Toastr!
  imports: [ ToastrModule ],
  providers: [
    // Override options here
    provideToastr({
      timeOut: 500,
    })
  ]
})
class ExampleMainModule {}

1.2.0

23 Aug 06:32
Compare
Choose a tag to compare

Fixed a bug that was breaking toasts after the first timeout

1.1.0

22 Aug 20:40
Compare
Choose a tag to compare
  • Drop Injector dependency
  • Allow multiple position classes to be used simultaneously

1.0.0

22 Aug 18:02
Compare
Choose a tag to compare
  • Overlays are now synchronous thanks to more progress on material2.
  • EventEmitters for onHidden, onShown, onTap. You can subscribe to these from your ToastConfig (the one that is an optional parameter on every toast shown).
let customConfig = new ToastConfig();
customConfig.timeOut = 0;
customConfig.onTap.subscribe(() => console.log('tapped'));
this.toastrService.error('waits for tap to close', '', customConfig);

0.5.0

15 Aug 06:10
Compare
Choose a tag to compare

Add config option extendedTimeOut = how long the toast will display after a user hovers.
Silence error from ComponentResolver rc4 -> rc5

Breaking Changes

Now requires angular rc5 to work and @angular/platform-browser if you somehow weren't using that already.

0.4.0

10 Aug 17:50
Compare
Choose a tag to compare

Had issues getting ngModule to work with toast progress and have merged toast component and toast progress into a single component.

0.3.0

10 Aug 17:36
Compare
Choose a tag to compare

Changes:
Support release candidate 5.
Export toastr as an NgModule! Readme has more information on how to import it and overwrite defaults.

0.2.0

08 Aug 22:24
Compare
Choose a tag to compare

new features

Adds an optional progress bar.

breaking changes

If you've already copied the css, you will need to copy it again as there was a change. Still considering inlining it in the component styles.

0.1.0

04 Aug 23:36
Compare
Choose a tag to compare
  • Added newestOnTop which is default to true