How is the validation of select done using ng-required="true"
?
For input I'm putting it like this:
<form name="tarefasForm">
<input type="text" ng-model="tarefa.solicitante" ng-required="true" name="solicitante-tarefa">
</form
<button ng-click="adicionaTarefa()" type="button"
ng-disabled="tarefasForm.$invalid">Salvar
</button>
How is it time for a select?
<div class="form-group">
<label class="" for="orderBy">Tipo</label>
<select ng-options="tipoTarefa as tipoTarefa.tipo for tipoTarefa in listaTipoTarefa track by tipoTarefa.codigo" ng-model="tarefa.codTipo" class="form-control cb"></select>
</div>