@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? 

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to