I have a textarea for which I have a validation pattern. I require the character count of this field even when the value entered is invalid/does not match the pattern.
What I see currently is that when the pattern match return invalid for the ng-model binded textarea, the length of textarea is zero.I need a way to get the count even in invalid case.
Code Follows :-
<textarea class="form-control" id="ccListId" name="ccListName" ng-model="ccList" my-maxlength=255 maxlength=255 ng-pattern="emailCCListRegex"></textarea>
Could anyone suggest a way here..thanks in advance