rea-ng-validate

0.0.4 • Public • Published

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>

Package Sidebar

Install

npm i rea-ng-validate

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • ds82