@zionapps/ngrx-ionic
v1.2.0
Published
[![Build status](https://zionusa.visualstudio.com/zionapps-ngrx-ionic/_apis/build/status/zionapps-ngrx-ionic-CI)](https://zionusa.visualstudio.com/zionapps-ngrx-ionic/_build/latest?definitionId=-1)
Downloads
65
Readme
Zion Apps NgRx Ionic
Ionic components powered by NgRx
Components
- Toast
Toast Component Example
import {NgModule} from '@angular/core';
import {EffectsModule} from '@ngrx/effects';
import {
NGRX_CORE_TOAST_CONFIG,
IonicToastEffects,
IonicToastService,
} from '@zionapps/ngrx-ionic';
import {IonicModule} from '@ionic/angular;
const config = {
closeButton: true,
timeOut: 5000,
};
@NgModule({
declarations: [],
imports: [
IonicModule,
EffectsModule.forFeature([IonicToastEffects]),
],
providers: [
IonicToastEffects,
IonicToastService,
{ provide: NGRX_CORE_TOAST_CONFIG, useValue: config },
]
})
export class IonicToastModule {}