Rolustech Interview Question

What is dependency injection explain?

Interview Answer

Anonymous

Jun 8, 2024

Dependency injection (DI) is one of the most important mechanisms in Angular. This pattern allows for inversion of control by passing instances of requested dependencies to the class instead of creating them inside the class.