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:
parent
435a28e937
commit
a177b1b7b1
|
@ -70,8 +70,8 @@ export interface Injectable {
|
||||||
* - 'root' : The application-level injector in most apps.
|
* - 'root' : The application-level injector in most apps.
|
||||||
* - 'platform' : A special singleton platform injector shared by all
|
* - 'platform' : A special singleton platform injector shared by all
|
||||||
* applications on the page.
|
* applications on the page.
|
||||||
* - 'any' : Provides a unique instance in every module (including lazy modules) that injects the
|
* - 'any' : Provides a unique instance in each lazy loaded module while all eagerly loaded
|
||||||
* token.
|
* modules share one instance.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
providedIn?: Type<any>|'root'|'platform'|'any'|null;
|
providedIn?: Type<any>|'root'|'platform'|'any'|null;
|
||||||
|
|
Loading…
Reference in New Issue