响应式表单
FormControl 的 valueChanges 属性和 statusChanges 属性包含了会发出变更事件的可观察对象。...例子
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl..., AbstractControl } from '@angular/forms';
import { concat, merge, zip, combineLatest, race } from 'rxjs.../app.component.html',
styleUrls: ['....比如这里在结果里追加上次更新时间,字段名为lastTime
this.form.valueChanges
.pipe(
filter(() => this.form.valid