In below angular-2 code I am using a dropdown inside a form which is required field , if i use the validation on the value field of the dropdown it works fine but i want the value and text both should not be null or empty, how can i add the required validation on text of a drop also.
HTML
<select formControlName="PayPeriodId" placeholder="Pay Period" required>
<option *ngFor="let PayPeriod of payPeriodList" [value]="PayPeriod.Id">
{{PayPeriod.Name}}
</option>
</select>
Component
let employeePersonalDetail : new PersonalDetailResponseModel();
this.editEmployeeForm = this.formBuilder.group({
PayPeriodId: [employeePersonalDetail.PayPeriodId, Validators.required]
});