@zionapps/ngrx-angular
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Zion Apps NgRx Angular

Build status

Angular components powered by NgRx

Components

Module

import {NgModule} from '@angular/core';
import {EffectsModule} from '@ngrx/effects';
import {
  NGRX_CORE_TOAST_CONFIG,
  NgRxCoreToastEffects,
  NgRxCoreToastService,
} from '@zionapps/ngrx-angular';
import {
  ToastrModule,
  ToastrService,
} from 'ngx-toastr';

const config = {
  closeButton: true,
  timeOut: 5000,
  positionClass: 'toast-top-right',
  progressBar: true,
};

@NgModule({
  declarations: [],
  imports: [
    EffectsModule.forFeature([NgRxCoreToastEffects]),
    ToastrModule.forRoot(config),
  ],
  providers: [
    NgRxCoreToastEffects,
    NgRxCoreToastService,
    { provide: NGRX_CORE_TOAST_CONFIG, useValue: config },
    ToastrService,
  ]
})
export class AngularToastModule {}

The complete library

Readme

Keywords

none

Package Sidebar

Install

npm i @zionapps/ngrx-angular

Weekly Downloads

10

Version

1.4.0

License

none

Unpacked Size

1.03 MB

Total Files

110

Last publish

Collaborators

  • zionapps