Custom Class:
export abstract class CustomClass {
constructor();
customMethod() {
// accessing the name input of SomeComponent here;
}
}
Some Component:
export class AnotherComponent extends CustomClass {
@Input() name: string;
constructor() {
super();
}
}
How can I utilize the value of AnotherComponent's
name input in the method of CustomClass
?