This video explain DI, Services, and Providers in Angular . It explain the following topics,
- Theory of Dependency Injection
- provideIn : ‘root’
- Tree shakeable services
- singleton service
- useClass
- useExisting
- useFactory
- useValue
- Real time example of useClass in a global error handling of app
- service in lazy loaded modules
- provideIn :’any’
Download SourceCode : https://github.com/debugmodedotnet/angulardependecyinjectionsample
Leave a Reply