The difference between the root
and any
as per offical documentation :
root
: The application-level injector in most apps.
platform
: A special singleton platform injector shared by all
applications on the page.
any
: The NgModule injector that receives the resolution.
For more details please refer this article.
Is a service considered a singleton in the case that I use any
? - No
To go back to the original question between root
& platform
, when using a single application in your project, it doesn't change anything performance wise.