cannot read property 'value' of undefined angular code example
Example: Cannot read property 'valueChanges' of undefined
this.yourFormGroup.get('controlName').valueChanges.subscribe(() => {
//Executed code when is detected a change on the 'controlName'
});