Below is the structure of the nested form group
this.userProfileSettingsForm = fb.group({
general: fb.group({
language: [],
theme: []
}),
report: fb.group({
display: [],
density: [],
})
})
If I subscribe to the general group like below, I am getting all property values with the updated one. But I want to get only the property which I updated in the form. For Ex: If I change the property language under general FormGroup, only I want to receive the language property updated value.
this.userProfileSettingsForm.controls.general.valueChanges.subscribe(
(value: any) => {
console.log(value)
}
)
Can anyone tell me how can I identify the particular property changes by subscribing to the group?