I have implemented tabs in where i have a form & a button in tab1. I have an event in parent component which makes the current tab deactive and the next tab active. How to call the event in parent component from the child component?
gotosecondtab(){
this.firsttabactive=false;
this.secondtabactive=true;
}
This is the event in parent component...I want to run this event from child component
onSubmit(): void {
console.log('you submitted value: ', this.myForm.value);
//How to call the parent event here
}
I want to run gotosecondtab() event when i execute onSubmit() event...Somebody help me please