My current approach is as follows:
class AService {
$http: any;
$state: any;
static $inject = ['$http', '$state'];
constructor($http, $state) {
this.$http = $http;
this.$state = $state;
};
Dealing with TypeScript often results in a large amount of boilerplate code. Is there a more concise alternative?