<input ng-regex="\w{2,}" message="waring: too short" ng-model="name">
<input ng-regex="emailRegex" message="waring: email not valid" ng-model="email">
$scope.emailRegex = new Regex('...');
<input ng-regex="\w{2,}" message="waring: too short" ng-model="name">
<input ng-regex="emailRegex" message="waring: email not valid" ng-model="email">
$scope.emailRegex = new Regex('...');
npm i ng-regex
2
0.0.5
ISC