I have used text-angular for getting input from user. The below code does not validate the input
<div text-angular ng-pattern="/^[a-zA-Z0-9\-\s]+$/" name="description" ng-minlength="100" ta-min-text="100" required>
</div>
<p ng-show="jform.description.$invalid && !jform.description.$pristine && !jform.description.$error.pattern" class="help-block">Invalid input</p>
whereas ng-pattern
works on
<input type="text" ng-pattern="/^[a-zA-Z0-9\-\s]+$/" name="description">
<p ng-show="jform.description.$invalid && !jform.description.$pristine && !jform.description.$error.pattern" class="help-block">Invalid input</p>
Does the text-angular
has different attribute for ng-pattern
?
Any help will be highly appreciated.