Skip to content

Commit

Permalink
fix(Effects): Use factory provide for console (#288)
Browse files Browse the repository at this point in the history
Closes #276
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Aug 17, 2017
1 parent bbb7c99 commit bf7f70c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/effects/src/effects_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class EffectsModule {
},
{
provide: CONSOLE,
useValue: console,
useFactory: getConsole,
},
],
};
Expand All @@ -50,3 +50,7 @@ export class EffectsModule {
export function createSourceInstances(...instances: any[]) {
return instances;
}

export function getConsole() {
return console;
}

0 comments on commit bf7f70c

Please sign in to comment.