Currently, I have tabs implemented with a form and a button in tab1. In the parent component, there is an event that deactivates the current tab and activates the next one. Can anyone advise on how to call this event from the child component?
gotosecondtab(){
this.firsttabactive=false;
this.secondtabactive=true;
}
The above code snippet represents the event in the parent component which I would like to trigger from the child component.
onSubmit(): void {
console.log('you submitted value: ', this.myForm.value);
//I need assistance on calling the parent event here
}
I aim to execute the `gotosecondtab()` event when triggering the `onSubmit()` event. Any help or guidance would be greatly appreciated.