I am working on a form that includes a textarea
element for users to input descriptions, however it does not allow any empty spaces. Users can only input alphanumeric and numeric characters, but no spaces.
<textarea class="form-control" rows="4" maxlength="{{vm.model.maxLength}}"
id="comment" ng-model="vm.model.FreeText" ng-required="true" ng-maxlength="
{{vm.model.maxLength}}" ng-disabled="vm.model.FreeTextIsdisabled" ng-
trim="false"></textarea>