Skip to content

Glossary: Angular Basics

inject()

Also written: injection context

The function a class calls in a field to ask Angular for a service, such as `inject(OrderService)`. It works only while Angular creates the class, called an injection context.

Where the book teaches it