FrontendDeveloper.in

Angular question detail

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.

Back to all Angular questions
Get LinkedIn Premium at Rs 399