我创建了一个包含missionDate和birthDate的表单,我希望minDate是birthDate,我使用了RxwebValidators表单@rxweb包来验证字段
Component.ts
export class EmployeeComponent implements OnInit {
employeeFormGroup: FormGroup
constructor(
private formBuilder: RxFormBuilder
) { }
ngOnInit() {
this.employeeFormGroup= this.formBuilder.group({
admissionDate :['',RxwebValidators.required()],
birthDate:['',RxwebValidators.minDate({value:'28/01/2019'}]
});
}
}
我是否可以通过任何方式基于birthDate来验证admissionDate