📅  最后修改于: 2022-03-11 14:56:42.850000             🧑  作者: Mango
export const passwordMatchingValidatior: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {
const password = control.get('password');
const confirmPassword = control.get('confirmPassword');
return password?.value === confirmPassword?.value ? null : { notmatched: true };
};