Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private watchFormUpdates(): void {
- this.reactiveForm.valueChanges
- .pairwise()
- .map(([prev, curr]) => Object.keys(curr).find(key => prev[key] !== curr[key]))
- .subscribe(key => console.log(key, this.reactiveForm.controls[key].value));
- }
Add Comment
Please, Sign In to add comment