Good morning. I have been trying to validate my form for a while, disabling Button
when it is invalid. I've tried it in many ways, including researching here and following it as it was said. But it still did not work out.
<button type="button" class="btn btn-primary" ng-disabled="!myForm.timeUpdateModel" data-ng-click="salvar();">Pesquisar</button>
I've tried using timeUpdateModel.$invalid
, timeUpdateModel.$pristine
, tried searching for the name of input
timeUpdate.$invalid
and even then none of them works. Can someone help me?