Skip to content

rea-jet/ng-validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-validate

Demo

Demo

Usage

Install:

npm i rea-ng-validate

JS:

  angular.module('app', ['rea.misc.validate']);

HTML:

<form>
  <div class="form-group" rea-validate-group>
    <label class="control-label">Email address</label>
    <input
      type="email"
      class="form-control"
      placeholder="Email"
      ng-model="app.form.email"
      ng-pattern="/[a-zA-Z-_\.]@[a-zA-Z-_\.]/"
      rea-validate
      >
      <span
        rea-validate-hint
        class="help-block"
      >This text describes the error and is only visible if the above input is in error-state</span>
  </div>
</form>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published