https://chsamii.medium.com/how-to-not-trigger-value-changes-when-editing-a-formcontrol-in-angular-2-198a8fe541d8
this.filterForm.setValue(value, {emitEvent:false});
NOTE: setting this will also not update the values on this.filterForm.getValue() !!!!!
this.formGroup.valuechanges.subscribe always trigger first than (change)="selectionChange"
log
value - changes {deviceId: 'test123', bundleId: '', eliteAddon: false}
selection change
value - changes {deviceId: 'test345', bundleId: '', eliteAddon: false}
No comments:
Post a Comment