I want to call myrole()
of ComponentTwo in componentOne without parent child relation.
ComponentOne is main component. After click on MyRoleClick()
I want to call myrole()
of ComponentTwo
export class ComponentOne{
MyRoleClick(){
want to call myrole() of ComponentTwo without parent child relation here.
}
}
export class ComponentTwo{
myrole(){
}
}