Angular Dependency Injection and Child Components
Learn how Angular uses Dependency Injection (DI) to provide services to components and how to work with child components.
We'll cover the following
Angular uses a technique known as Dependency Injection (DI) to provide services to components. This means that a class can request an instance of a service that it depends on, and Angular will resolve this dependency at runtime. DI in Angular works through the constructor function of a component:
Get hands-on with 1400+ tech skills courses.