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