Suggest an editImprove this articleRefine the answer for “What is the component injector (element injector)?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Component injector (element injector)** is an injector Angular creates for each component; it handles dependencies available only to that component and its descendants. **Key point:** Each component with its own providers gets its own service instance, isolated from other components.Shown above the full answer for quick recall.Answer (EN)Image**Component injector (element injector)** is an injector Angular creates **for each component**. It handles dependencies **available only to that component and its child elements**. --- ### How this works: - each component gets **its own injector** when it is created; - if providers are declared on the component, Angular stores them right there; - when looking up a dependency, Angular goes **bottom-up**: first the component injector, then the module injector, then the root injector. --- ### Example: ```ts @Component({ selector: 'app-user', template: `<p>Profile</p>`, providers: [UserService] // provider at the component level }) export class UserComponent { constructor(private userService: UserService) {} } ``` Here `UserService` is created **only for this component**, and every new instance of `UserComponent` gets **its own instance of the service**. --- ### Why it is needed: - to **isolate dependencies** between components; - so each component can have **its own independent state**; - for **optimization and testing**, less shared data. --- **Summary:** A component injector is a local dependency container that manages services only for a specific component and its descendants.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.