angular dependency injection

Опубликовано: 22 Май 2019
на канале: Programming with Karthik
575
10

angular dependency injection
Complete Playlist:    • Angular 9 Tutorial  
Angular 9 Tutorial | EP11 | angular dependency injection
For reading Angular
Please refer to this playlist
   • Angular 9 Tutorial  
Kindly Subscribe

Dependency Injection:
application design pattern
 Is a technique whereby it is supplied with the dependencies it needs rather than creating it. 
Enables loose coupling

Dependency Injection in Angular:
Own DI system
Injector is responsible for providing dependcies
Relies on the provider as it tells an injector how to create the service
Configure injector with provider in three ways
In the @Injectable() decorator for the service itself.
In the @NgModule() decorator for an NgModule.
In the @Component() decorator for a component.
Two levels of injector
Root level injector when bootstrapped.
Component level injector when Component is configured with provider.
Hierarchical Dependency Injection System


На этой странице сайта вы можете посмотреть видео онлайн angular dependency injection длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Programming with Karthik 22 Май 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 575 раз и оно понравилось 10 зрителям. Приятного просмотра!