File3.ts
export class3(){
method1(x,y){
....
}
}
File4.ts
export class4(){
a: string = "abc"
b: string ="xyz"
//How can I call method1 and pass parameters from file 3?
method1(x,y);
}
I attempted the following in File4.ts, but it did not work as expected.
@ViewChild(class3, { static: false }) ClassVar: class3; this.ClassVar.method1(x,y)