@Injectable() export abstract class BaseClass { constructor(private x: MyService){} abstract test(): void; }
@Injectable() export class ChildClass extends BaseClass { myProp: boolean = false; test(): void { console.log(this.myProp); // undefined } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)