Angular 2 ng-required
问题 I made a model-driven form in angular 2, and one of the input fields must show up only if a checkbox above is unchecked.I did this with *ngIf. My question is how can I set that input required only if the checkbox is unchecked? In angular 1.x i could make this happen with the ng-required="condition" in the view. Here is the html: //the checkbox <div class="checkbox col-sm-9"> <label> <input type="checkbox" id="getCompanyAddress" style="cursor: pointer;" [formControl]="form.controls['address']"