As the title states I get the following TSLint error:
'$http' cannot be declared in the constructor
I couldn't find anything related to this error on the internet.
Here's my code:
module MyModule {
"use strict";
class MyService {
static $inject = ["$http"];
constructor(private $http: ng.IHttpService) {
}
}
}
no-constructor-vars
has been renamed tono-parameter-properties
, see github.com/palantir/tslint/issues/1296 – Piscator