angularjs text area character counter

It’s because angularJS automatically trimmed your model.

If you’re using angularJS 1.1.1 or newer, add ng-trim="false" to textarea.

Working example: http://jsfiddle.net/9DbYY/

Leave a Comment