Component A
age = 5;
updateAge(){
this.age++;
}
openpopup(){
this.window.open({
title:info,
content: B_Component
})
}
Component B
constructor(private a: A_Compoennt){
}
clickButton(){
this.a.updateAge();
}
I have two component, component A and component B, there is no parent/child relationship between those two. There is a circular dependency problem between those two component. How do I solve this question without interface. When i check online, all the post says that use interface to resolve circular dependency.