Hi,
I need to be able to enable/disable dynamically. This is easy when there is a paren child relationship. I can use ViewChild to get access to the disabled variable of the child and that works.
Example: MySplitButton component have a method to set the flag to true or false
setButtonStatus(flag : boolean){
this.isButtonDisabled = flag }
In parent I can access the child and call the method.
@ViewChild(MySplitButton) splitComponent : MySplitButton;
this.splitComponent.setButtonStatus(true);
When the MySplitButton component is not the direct child, how do I set access to the this component from lets say grand parent component?
Regards,
Jyothi