@compodoc/compodoc
Version:
The missing documentation tool for your Angular application
35 lines (26 loc) • 618 B
text/typescript
import { Component, Input } from '@angular/core';
({ template: '' })
export abstract class MotherComponent {
abstract myProp: string;
constructor() {}
abstract myMethod(): string;
}
({ template: '' })
export class SonComponent extends MotherComponent {
myProp: string;
constructor() {
super();
}
myMethod(): string {
return 'Implementation A';
}
}
({ template: '' })
export class GrandsonComponent extends SonComponent {
constructor() {
super();
}
myMethod(): string {
return 'Implementation B';
}
}