What is the recommendation for provider scope?

You should always provide your service in the root injector unless there is a case where you want the service to be available only if you import a particular @NgModule.


Author of content
Edit this page

Made by Michael Sakhniuk

Twitter