Angular 2 requiring one of two items in a formgroup
问题 I am trying to validate a reactive form that has three fields. Username is always a required field, but I only want the user to have to enter either a phone number or an email in addition to username, and I cannot figure out how to do so. I've tried nested form groups, and custom validators, I also tried the solution here, but no luck. Here is my current html form: <div class="container"><br> <form [formGroup]="signupForm" (ngSubmit)="onSubmit()"> <div class="form-group"> <label for="username