Skip to content

Commit

Permalink
Add multiple validation DEMO and API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Aug 23, 2014
1 parent f60ecf6 commit e4b848b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,11 @@ Easily disable success/error message
}]);
```

**multiple validators**<br/>
use commar as splitter

```html
<input type="text" validator="required, url" name="url" ng-model="form.url"/>
```


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Writing your First Code
</div>
<div>
<label>Url</label>
<input type="text" name="url" ng-model="form.url" validator="url">
<input type="text" name="required, url" ng-model="form.url" validator="url">
</div>
<button validation-submit="Form" ng-click="next()">Submit</button>
<button validation-reset="Form">Reset</button>
Expand Down
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ <h1>Angular Validation.
<input type="text" validator="range" name="range" ng-model="form4.range" placeholder="number 5~10" min="5" max="10">
</div>
</div>

<div class="row collapse">
<div class="small-12 columns">
<input type="text" validator="required, range" name="multiple" ng-model="form4.multiple" placeholder='number 5~10 with required (validator="required, range")' min="5" max="10">
</div>
</div>
</fieldset>
</form>
</div>
Expand Down

0 comments on commit e4b848b

Please sign in to comment.