This is how I currently do it:
class AService {
$http: any;
$state: any;
static $inject = ['$http', '$state'];
constructor($http, $state) {
this.$http = $http;
this.$state = $state;
};
It becomes alot of boilerplate code to satisfy typescript. Is there any shorter way?