Skip to content

Glossary: Angular Basics

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.

Where the book teaches it

Related terms

inject()