0.0.4 • Published 9 years ago

rea-ng-validate v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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>