Skip to content

Commit 7e0e9fe

Browse files
authored
Fix API checkValid example
1 parent 01d93ea commit 7e0e9fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ angular.module('yourApp', ['validation'])
197197
<form name="Form">
198198
...
199199
<!-- Check the entire form valid from angular-validation `valid` -->
200-
<button ng-disabled="form.checkValid()"></button>
200+
<button ng-disabled="!form.checkValid()"></button>
201201
<!-- or Check the specific form(Form) valid from angular `$valid` -->
202-
<button ng-disabled="form.checkValid(Form)"></button>
202+
<button ng-disabled="!form.checkValid(Form)"></button>
203203
<!-- Reset the specific Form -->
204204
<button ng-click="form.reset(Form)"></button>
205205
<!-- Clean Reset (angular validation 1.2.0) -->

0 commit comments

Comments
 (0)