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/
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/