Concept Flow - How dependency injection works in Angular
Component or Service needs a dependency
Angular checks the injector tree
Find provider for the dependency
Create instance if not created
Inject instance into the requester
Component/Service uses the dependency
Angular looks for the requested dependency in its injector tree, creates it if needed, and provides it to the component or service that asked for it.