我有一个表单组。
this.contactForm = this._formBuilder.group({
name: ['Pritam Kadam', [Validators.required, Validators.maxLength(255)]],
email: ['', [Validators.email, Validators.maxLength(255)]],
mobile: ['', [Validators.maxLength(15)]]
});
如果两个字段的电子邮件和手机都是空的显示错误,表明其中任何一个都是必需的,我该如何验证此表单。