У нас вы можете посмотреть бесплатно Dependency injection in Angular | Services & Dependency Injection или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса savevideohd.ru
In the last lecture we learned that creating an instance of a service by our own is not a good practice. Instead we can ask angular to inject an instance of a service in the component where we want to use it. This is called as dependency injection. Dependency injection is a concept where another source injects a dependency of a class to that class, making the class loosely coupled with dependent class. Let's leran with an example, how we cen inject a dependency to a component in this lecture.