What is the recommendation for provider scope?

Posted by Jennifer | Updated on

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.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers