<P> This is desirable, but it puts the responsibility of getting hold of the dependency on the code that constructs SomeClass . </P> <P> To manage the responsibility of dependency creation, each AngularJS application has an injector . The injector is a service locator that is responsible for construction and look - up of dependencies . </P> <P> Here is an example of using the injector service: </P> <P> Create a new injector that can provide components defined in the myModule module and request our greeter service from the injector . (This is usually done automatically by the AngularJS bootstrap). </P>

Angular 2 uses which type of dependency injection