formControl

formControl 属性

每一个FormControl都有一个valueChanges事件,该事件返回一个可观察的流

<input [formControl]="my">
 my:FormControl=new FormControl();
  constructor() {
    this.my.valueChanges.debounceTime(500).subscribe(value=>console.log(value))
  }
You can change the world with your heart,even a lot of changes sometimes unless you won't geiv up....
原文地址:https://www.cnblogs.com/xiongwei2017/p/7076022.html