I've multiple classes that inherit from a base class.
The base class should contain the Http instance so that subclasses, could issue HTTP calls in addition to their logic. The problem is that the subclasses need to call the super method from their constructor function, but I don't want to pass along the HTTP instance from bottom up.
Any ideas?
export abstract class AuthBaseService {
constructor(protected http: Http) {
}
public abstract login(credentials);
public abstract logout();
}
export class FacebookProviderAuthService extends AuthBaseService {
constructor(private facebookAuth: Auth) {
// **PROBLEM : I MUST CALL SUPER HERE**
}
// Login & Logout impl.
}