Hi!
I have an form, and i want check input field in controller
<input type="text" placeholder="Username" ng-model="data.username"
name="username" ng-minlength="3" ng-maxlength="20" required
autocomplete="off">
if (*regform.username.$error.minlength*) {
$scope.response = "Min 3 max 20"; //error message
};
but it doesnt work, so how can i check this in controller?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.