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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s