UNPKG

@datorama/akita-ng-effects

Version:

A Reactive State Management extension dealing with side effects.

23 lines 881 B
import { Inject, NgModule } from '@angular/core'; import { FEATURE_EFFECT_INSTANCES } from './tokens'; import { ModuleManager } from './module-manager.service'; export class EffectsFeatureModule { constructor(moduleManager, featureEffects) { this.moduleManager = moduleManager; featureEffects.forEach((group) => group.forEach((effect) => { this.moduleManager.subscribeToEffects(effect); })); } } EffectsFeatureModule.ctorParameters = () => [ { type: ModuleManager }, { type: Array, decorators: [{ type: Inject, args: [FEATURE_EFFECT_INSTANCES,] }] } ]; EffectsFeatureModule.decorators = [ { type: NgModule } ]; EffectsFeatureModule.ctorParameters = () => [ { type: ModuleManager }, { type: Array, decorators: [{ type: Inject, args: [FEATURE_EFFECT_INSTANCES,] }] } ]; //# sourceMappingURL=effect-feature.module.js.map