Hi i'm new to angularjs development and i'm struggling with form validations.
I have a input field that allows maximum of 8 digits. I want to show a error message if 8 digits are NOT given. Also the error message should disapear when 8 digits are given.
How can i do this?
My field
<input maxlength="8" ng-model="customer.customerId" class="form-control" id="id_customer_select_id" placeholder="Enter existing customer id" ng-change="selectCustomer()" name="customer_id" ng-value="customerId" required="required" > Thanks in advance.
ng-maxlengthandng-minlength.