How'd allow for an input using ng-pattern
only: letters
, numbers
, dot
, underscore
and dash
( . _ -)
?
Already tried the following ones
UPDATE:
$scope.validationPattern = '/^[a-zA-Z\d\-\_]+$/';
<input ng-model="model" type="text" ng-pattern="{{validationPattern}}" />