Within my main component, I have 2 nested components. Each of these components contain forms with input fields and span elements. Users can edit the form by clicking on an edit button, or cancel the editing process using a cancel button. However, I need to automatically cancel the edit status whenever the user switches tabs without explicitly clicking the cancel button. This means that an event needs to be triggered once the component is changed in order to reset the edit status to false. So far, I have not been able to find a solution to this seemingly simple issue.
The structure is illustrated below:
<accordion [isAnimated]="true">
<accordion-group heading="Basic Details">
<div class="profiletab_detail_wrp">
<app-basic-details></app-basic-details>
</div>
</accordion-group>
<accordion-group heading="Address Details">
<div class="profiletab_detail_wrp">
<app-address-details></app-address-details>
</div>
</accordion-group>