So i have a textarea with a max length of 100 characters and a model data that displays the remaining characters :
<textarea class="textarea" placeholder="Type here" ng-model="myTextarea" ng-maxlength="100"></textarea>
<span>{{100 - myTextarea.length}}</span>
When I type more than 100 characters in the textarea, the displayed value is 100. How do I allow displaying negative numbers ?
Also how do I disable button when remaining characters are below 0 ?
Something like <button ng-disabled="!myTextarea.length > 100">Submit</button>