Video- Simplifying Dependency Injection, Services, and Providers in Angular

This video explain DI, Services, and Providers in Angular . It explain the following topics,

  1. Theory of Dependency Injection
  2. provideIn : ‘root’
  3. Tree shakeable services
  4. singleton service
  5. useClass
  6. useExisting
  7. useFactory
  8. useValue
  9. Real time example of useClass in a global error handling of app
  10. service in lazy loaded modules
  11. provideIn :’any’

Download SourceCode : https://github.com/debugmodedotnet/angulardependecyinjectionsample


Discover more from Dhananjay Kumar

Subscribe to get the latest posts sent to your email.

Published by Dhananjay Kumar

Dhananjay Kumar is founder of NomadCoder and ng-India

Leave a comment

Discover more from Dhananjay Kumar

Subscribe now to keep reading and get access to the full archive.

Continue reading