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
This commit is contained in:
Santosh Yadav 2020-06-27 19:54:09 +05:30 committed by Andrew Kushnir
parent 435a28e937
commit a177b1b7b1
1 changed files with 2 additions and 2 deletions

View File

@ -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<any>|'root'|'platform'|'any'|null;