Is there a way to display a red border on an input field in AngularJS only after a button click? Currently, the red border shows up when the application loads due to ng-required validation on the form. Here's the code: http://plnkr.co/edit/zL0cueTJN6xqxC4LzhOd?p=preview
<div class="form-group" ng-class="{'has-error': myform[key].$invalid}">
<input type="text" name="{{key}}" class="form-control" ng-model="value.value" ng-required="value.required">
</div>