📅  最后修改于: 2022-03-11 15:03:45.030000             🧑  作者: Mango
this.reactiveForm.get("firstname").valueChanges.subscribe(selectedValue => {
console.log('firstname value changed')
console.log(selectedValue)
console.log(this.reactiveForm.get("firstname").value)
console.log(this.reactiveForm.value) //shows the old first name
setTimeout(() => {
console.log(this.reactiveForm.value) //shows the latest first name
})
})