Question - Explain Dependency Injection.
Answer -
Dependency injection is an application design pattern that is implemented by Angular and forms the core concepts of Angular.
Dependencies in Angular are services that simply have some functionality. Components and directives in an application may need these functionalities. Angular provides a smooth mechanism by which these dependencies are injected into components and directives.