From a177b1b7b19071948a58706ca4bfed163bb92256 Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Sat, 27 Jun 2020 19:54:09 +0530 Subject: [PATCH] docs: change definition of providedIn any (#35292) change in the definition of providedIn:any any instance creates a singleton instance for each lazy loaded module and one instance for eager loaded module PR Close #35292 --- packages/core/src/di/injectable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/di/injectable.ts b/packages/core/src/di/injectable.ts index df47085528..7b1adf97c3 100644 --- a/packages/core/src/di/injectable.ts +++ b/packages/core/src/di/injectable.ts @@ -70,8 +70,8 @@ export interface Injectable { * - 'root' : The application-level injector in most apps. * - 'platform' : A special singleton platform injector shared by all * applications on the page. - * - 'any' : Provides a unique instance in every module (including lazy modules) that injects the - * token. + * - 'any' : Provides a unique instance in each lazy loaded module while all eagerly loaded + * modules share one instance. * */ providedIn?: Type|'root'|'platform'|'any'|null;