Zion Apps NgRx Angular
Angular components powered by NgRx
Components
- Toast (with Ngx-Toastr)
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 {}