- 博客(2)
- 收藏
- 关注
原创 angular 一个控件发生改变,手动触发另一个控件的校验
// 控件A一旦更改,控件B就触发校验 this.forms.get('A')?.valueChanges.pipe(startWith('1'), debounceTime(200)).subscribe(res => { this.forms.get('B')?.markAsDirty() this.forms.get('B')?.updateValueAndValidity({ onlySelf: true }) })...
2022-06-28 10:56:57
464
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人