How can I do date control validation in an AngularJS form for the following code ?
<label for="startDate" class="control-label">Start Date:</label>
<div class="">
<input type="date" class="form-control"
id="startDate" ng-model="startDate" />
</div>
<label for="endDate" class="control-label">End Date:</label>
<div class="">
<input type="date" class="form-control"
id="endDate" ng-model="endDate" />
</div>
<div class="alert alert-warning" ng-show="">
// ??
</div>
If only one of the dates are entered, then the form should prompt to enter the other date. If both dates are empty, or both are entered, then it should successfully submit the form.