Are you experiencing an issue with detecting any changes on a page, where there is some information displayed and even if no changes are present, the SAVE button remains active for clicking?
ngOnInit(): void {
this.createConfigForm()
this.configFilterForm.valueChanges.pipe(takeUntil(this.unsubscribeAll$)).subscribe(value => {
value
})
}
<!-- ADD BUTTON -->
<button
*ngIf="isUpdate()"
[disabled]="configFilterForm"
mat-raised-button
class="add-config-button"
(click)="onSave()"
trackClickSnowplow
id="config-form_save_button"
>
<span>SAVE</span>
</button>