Here is my angularjs
code for the password field :
<input type="password" class="form-control" name="password" ng-model="signup.registerPassword" ng-minlength="8" >
<small class="errorMessage" data-ng-show="signupForm.registerPassword.$dirty && signupForm.registerPassword.$error.minlength"> Minimum 8 characters.</small>
<small class="errorMessage" data-ng-show="signupForm.registerPassword.$dirty && signupForm.registerPassword.$error.required"> Enter password again.</small>
when I type the password below 8 character it is not showing any error.
what is the mistake I am doing and how can I fix it ?