From 7fa3ba370c9f6c906857ab390f711653b8c4816c Mon Sep 17 00:00:00 2001 From: Daniel Karp Date: Tue, 18 Jul 2017 15:30:48 -0400 Subject: [PATCH] Clarify difference between forRoot and forFeature Adding effects via `forRoot()` and `forFeature()` is functionally identical. This PR makes that clearer in the docs. --- docs/effects/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/effects/api.md b/docs/effects/api.md index c873c18a64..b339976fcb 100644 --- a/docs/effects/api.md +++ b/docs/effects/api.md @@ -23,7 +23,7 @@ export class AppModule { } ### forFeature Registers @ngrx/effects services to run with your feature modules. -**Note**: Running an effects class multiple times (for example via different lazy loaded modules) will not cause Effects to run multiple times. +**Note**: Running an effects class multiple times, either by `forRoot()` or `forFeature()`, (for example via different lazy loaded modules) will not cause Effects to run multiple times. There is no functional difference between effects loaded by `forRoot()` and `forFeature()`; the important difference between the functions is that `forRoot()` sets up the providers required for effects. Usage: ```ts