11API
22===
3- ** Add Valid Message (error, success) for validation ` required ` ** <br />
3+ ### ** Add Valid Message (error, success) for validation ` required ` ** <br />
44` required-error-message ` and ` required-success-message `
55
66``` html
1616 -->
1717```
1818
19- ** Add Valid Message (error, success) for validation ` email ` ** <br />
19+ ### ** Add Valid Message (error, success) for validation ` email ` ** <br />
2020` email-error-message ` and ` email-success-message `
2121
2222``` html
2929 email-success-message =" Good Email" />
3030```
3131
32- ** Use Default Valid Message** <br />
32+ ### ** Use Default Valid Message** <br />
3333* you don't need to give valid message*
3434
3535``` html
3838```
3939
4040<a name =" no-validation-message " ></a >
41- ** Don't show the Valid Message ` no-validation-message="true" ` **
41+ ### ** Don't show the Valid Message ` no-validation-message="true" ` **
4242
4343``` html
4444<label >Number</label >
4747<input type =" text" name =" number" ng-model =" form.number" validator =" number" no-validation-message =" {{ noValidationMessage }}" />
4848```
4949
50- ** Add Valid Callback Function, ` invalid-callback ` & ` valid-callback ` **
50+ ### ** Add Valid Callback Function, ` invalid-callback ` & ` valid-callback ` **
5151
5252``` html
5353<label >Required (Invalid Callback alert)</label >
5454<input type =" text" name =" requiredCallback" ng-model =" form.requiredCallback" validator =" required" invalid-callback =' error("Must be Required");' />
5555```
5656
57- ** Select the validation method ` watch ` ` blur ` ` submit ` ` submit-only ` , default as ` watch ` ** <br />
57+ ### ** Select the validation method ` watch ` ` blur ` ` submit ` ` submit-only ` , default as ` watch ` ** <br />
5858` validationProvider.validate(form).success(callback).error(callback) ` use callback to continue your submit
5959
6060``` html
109109<!-- Clean, right ? -->
110110```
111111
112- ** Setup a new Validation ` setExpression() ` ` setDefaultMsg() ` with ` RegExp ` or ` Function ` in config phase**
112+ ### ** Setup a new Validation ` setExpression() ` ` setDefaultMsg() ` with ` RegExp ` or ` Function ` in config phase**
113113<a name =" custom-function-huei " ></a >
114114
115115``` html
@@ -161,8 +161,8 @@ angular.module('yourApp', ['validation'])
161161 }]);
162162```
163163
164- ** Check form whether valid, return ` true ` if valid. ` checkValid() ` ** <br />
165- ** Reset the specific Form. ` reset() ` **
164+ ### ** Check form whether valid, return ` true ` if valid. ` checkValid() ` ** <br />
165+ ### ** Reset the specific Form. ` reset() ` **
166166
167167``` html
168168<form name =" Form" >
@@ -192,7 +192,7 @@ angular.module('yourApp', ['validation'])
192192 };
193193```
194194
195- ** Set the valid/invalid message style CSS**
195+ ### ** Set the valid/invalid message style CSS**
196196
197197``` html
198198<span ><p class =" validation-valid" >Your valid message here<p ></span >
@@ -209,7 +209,7 @@ angular.module('yourApp', ['validation'])
209209}
210210```
211211
212- ** Custom the valid/invalid message style HTML in ` .config() ` ,** <br />
212+ ### ** Custom the valid/invalid message style HTML in ` .config() ` ,** <br />
213213` setErrorHTML(func) ` ` setSuccessHTML(func) ` , input should be a ` function ` and given ` parameter ` which is the valid/invalid message declared
214214in ` getDefaultMsg() ` ,and finally return the HTML code
215215
@@ -227,7 +227,7 @@ in `getDefaultMsg()`,and finally return the HTML code
227227}]);
228228```
229229
230- ** disable/enable show success/error message** <br />
230+ ### ** disable/enable show success/error message** <br />
231231` default: true ` <br />
232232Easily disable success/error message
233233
@@ -239,7 +239,7 @@ Easily disable success/error message
239239}]);
240240```
241241
242- ** multiple validators** <br />
242+ ### ** multiple validators** <br />
243243use commar as splitter
244244
245245``` html
0 commit comments