There is the following code:
<input class="form-control" id="secret_key" type="text" name="secret_key" ng-model="hotel.secret_key" ng-required="true" ng-minlength="8" placeholder="Secret Key" />
I can validation length of this field, it works. But now I have to validate if this length contains at least one digit, one small letter and one capital letter. How can I do it using AngularJS? Thanks in advance.