1
I have two classes in Angular 4 that are related by inheritance, however in doing the build makes a mistake:
error TS2554: Expected 5 Arguments, but got 0.
Pai Class:
constructor(protected http: Http,
private router: Router,
protected jwtToken: JwtTokenService,
private loadingService: LoadingService,
protected requestOptions: DefaultRequestOptionsService) {}
Classe Filho:
constructor(private localStorage: LocalStorageService,
protected jwtToken: JwtTokenService,
protected http: Http) {
super();
this.check = this.jwtToken.token ? true : false;
}
Thanks, but in the previous versions it was not necessary because no?
– Laranja Mecânica
It was. It makes no sense not to be required, let alone change from nothing.
– Maniero