During the development of a contact form, I encountered a challenge. After successfully submitting the form, I hide it, but then the footer pops up because the form is hidden:
<div class="form-wrapper mat-elevation-z1" [hidden]="successfullySent">
.....
</div>
I have already created a script to resolve this issue, but it only activates when there are changes in window size and is part of my footer component:
onResize() {
this.stickyFooter();
}
Does anyone have suggestions on how I can implement this script in my contact component or somehow detect DOM changes in the footer component?