【发布时间】:2020-06-15 21:42:04
【问题描述】:
如果我设置如下形式的值
this.loadBasicForm.setValue({
loadDirection,
loadSubDirection,
multiPointType,
truckLoadType
});
我必须使用 setTimeout 来确保值已更新。
setTimeout(() => {
//do some other action with the changed values.
}
除了使用 setTimeout 之外,有没有更好的方法来做到这一点。
【问题讨论】:
标签: angular angular-reactive-forms