Skip to content

Commit bfc8d88

Browse files
author
Huei Tan
committed
Update API.md "Customizable Initial Validation"
1 parent 2f152da commit bfc8d88

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

API.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,13 @@ angular.module('yourApp', ['validation'])
289289
}]);
290290
```
291291

292+
### **Customizable Initial Validation**<br/>
293+
Intial Validation for the input false. You can make it to true!
294+
295+
```html
296+
<!-- default fase -->
297+
<input type="text" name="firstName" ng-model="firstName" validator="required"/>
298+
299+
<!-- set to true -->
300+
<input type="text" name="firstName" ng-model="firstName" validator="required" initial-validity="true"/>
301+
```

0 commit comments

Comments
 (0)