Проверка пароля в angular js
пароль и пароль подтверждения еще не совпадают проверка не запускается
Что я уже пробовал:
<pre> <div class="form-group" ng-class="{ 'has-error' : registrationForm.pwd.$invalid && !registrationForm.pwd.$pristine}"> <label for="pwd">Password:</label> <input type="password" class="form-control" id="pwd" name="pwd" placeholder="Enter Password" ng-model="userdetails.pwd" required /> <span style = "color:red" ng-show = "registrationForm.pwd.$dirty && registrationForm.pwd.$invalid"> <span ng-show = "registrationForm.pwd.$error.required">Password is required.</span> </span> </div> <div class="form-group" ng-class="{ 'has-error' : registrationForm.conpwd.$invalid && !registrationForm.conpwd.$pristine}"> <label for="pwd">Confirm Password:</label> <input type="password" class="form-control" id="conpwd" name="conpwd" placeholder="Enter Confirm Password" ng-model="userdetails.conpwd" ng-match="userdetails.pwd" required /> <span style = "color:red" ng-show = "registrationForm.conpwd.$dirty && registrationForm.conpwd.$invalid"> <span ng-show = "registrationForm.conpwd.$error.required">Password is required.</span> <span ng-show = "registrationForm.conpwd.$error.match">Password do not match..</span> </span> </div>