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.


Made in India with ❤️ by Rajesh Kumar Yadav

Twitter