6
Jak mówi tytuł pojawia się następujący błąd TSLint:
'$http' cannot be declared in the constructor
nie mogłem znaleźć nic związanego z tym błędu w internecie.
Oto mój kod:
module MyModule {
"use strict";
class MyService {
static $inject = ["$http"];
constructor(private $http: ng.IHttpService) {
}
}
}
'no-konstruktor-vars' został przemianowany na' no-parametr-properties' patrz https://github.com/palantir/tslint/issues/1296 – Bob