Wie der Titel ich folgende TSLint Fehler erhalten deklariert werden:
'$http' cannot be declared in the constructor
ich nichts im Zusammenhang mit diesem Fehler im Internet finden konnte.
Hier ist mein Code:
module MyModule {
"use strict";
class MyService {
static $inject = ["$http"];
constructor(private $http: ng.IHttpService) {
}
}
}
'no-Konstruktor-vars' hat' no-Parameter-properties' umbenannt, siehe https://github.com/palantir/tslint/issues/1296 – Bob