Dependency injection (DI)
Also written: DI, dependency injection
A class says what it needs and Angular creates it and hands it over, rather than the class using `new`. This is how components share one OrderService.
Also written: DI, dependency injection
A class says what it needs and Angular creates it and hands it over, rather than the class using `new`. This is how components share one OrderService.