jonsamwell/angular-auto-validate

the use of forceValidation

maoting opened this issue · 1 comments

$scope.$watch('vm.model.name', function() {
$scope.vm.model.email = $scope.vm.model.name
})

When the error message is "This field is required", I set the value of email as above, but the message don't disappear.

In the "jcs-auto-validate.js" , I update "opts.forceValidation = true;", the message can disappear.

Can you explain for me the use of "forceValidation"?

Thank you very much!

It is used to the the validation even if the form or element is valid