How do I import the angular.IInjectorService from the angular.d.ts file using the ES6 module syntax in TypeScript?
EDIT: What I'd really like to know is how I can use the IInjectorService
without fully qualifying it. In other words, I want to do this:
class TestCtrl {
constructor($injector: IInjectorService) {...}
}
Instead of this:
class TestCtrl {
constructor($injector: ng.auto.IInjectorService) {...}
}
Currently, I'm doing it the internal module way. Something like this:
///<reference path="../path/to/typeDefinitions/angularjs/angular" />
import IInjectorService = ng.auto.IInjectorService;
class TestCtrl {
constructor($injector: IInjectorService) {...}
}
My question is, is there an ES6 way to accomplish this? For example, something like the following pseudocode:
import {IInjectorService} from '../path/to/typeDefinitions/angularjs/angular';
class TestCtrl {
constructor($injector: IInjectorService) {...}
}