Skip to content

Instantly share code, notes, and snippets.

@jorroll
Created November 4, 2019 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorroll/82763147f4aff6d63145b3241b5294fa to your computer and use it in GitHub Desktop.
Save jorroll/82763147f4aff6d63145b3241b5294fa to your computer and use it in GitHub Desktop.
const formGroup = new FormGroup({
id: new FormControl(''),
address: new FormGroup({
street: new FormControl(''),
city: new FormControl(''),
}),
});
formGroup
.observe('controls', 'address', 'controls', 'street', 'value')
.subscribe(value => {
// do stuff
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment