我只需要从多个最新订阅。
当我的FormControl值发生变化时,我只需要在用户完成输入后获得最新值。这是我的代码 -
let control = this.register.controls['email'];
control.valueChanges.debounceTime(300).pipe(take(1)).subscribe(newValue => {
console.log(newValue);
})
但它返回多个Subscriptions. 我怎样才能得到最新的?
慕虎7371278
相关分类