@Component({
selector: 'my-base-component',
templateUrl: 'my-base-component.html',
})
export class BaseClass implements OnInit, AfterViewInit, AfterViewChecked {
constructor(protected _serviceA: ServiceA,
protected _serviceB: ServiceB,
protected _serviceC: ServiceC,
protected _serviceD: ServiceD) {
}
}
export class DerivedClass extends BaseClass {
...logic DerivedClass...
}
Please notice that DerivedClass doesn't have a constructor and therefore is using the BaseClass's one.
Since I upgraded from 2.0.1 to 2.4, I can no longer do that - _serviceA _serviceB etc.. are getting undefined.
I don't have a decorator above the DerivedClass since the only thing that changes is the logic inside the component.
Any thoughts?