ng-regex

0.0.5 • Public • Published

ng-regex Angular Directive

example

<input ng-regex="\w{2,}" message="waring: too short" ng-model="name">

example2

<input ng-regex="emailRegex" message="waring: email not valid" ng-model="email">


$scope.emailRegex = new Regex('...');

Readme

Keywords

Package Sidebar

Install

npm i ng-regex

Weekly Downloads

0

Version

0.0.5

License

ISC

Last publish

Collaborators

  • parksungho