Using the Angular $injector service