angular-validation-schema icon indicating copy to clipboard operation
angular-validation-schema copied to clipboard

'validate-on': 'submit'

Open donnygunawan93 opened this issue 9 years ago • 6 comments

'validate-on': 'submit'

any option for this? just submit?

thx ^_^

donnygunawan93 avatar Jul 21 '15 16:07 donnygunawan93

Glad hearing from you @donnygunawan93 .

Nudge @thetutlage

hueitan avatar Jul 22 '15 01:07 hueitan

@donnygunawan93 I believe 'validate-on': 'submit' is already there ?

thetutlage avatar Jul 22 '15 07:07 thetutlage

var Author = {
    globals: {
        'validations': 'required',
        'validate-on': 'submit',
        'messages':{
            'required': {
                'error':'We need it',
                'success': 'All good'
            }
        }
    },
    firstname: {
    },
    url:{
        'validations': 'required,url'
    }
};

hueitan avatar Jul 22 '15 07:07 hueitan

Ohhh i got you @donnygunawan93 , it supports all methods listed here https://github.com/huei90/angular-validation/blob/master/API.md#select-the-validation-method-watch-blur-submit-submit-only-default-as-watch-

thetutlage avatar Jul 22 '15 10:07 thetutlage

:+1:

hueitan avatar Jul 22 '15 10:07 hueitan

oh yeah, thx ^_^

donnygunawan93 avatar Jul 22 '15 19:07 donnygunawan93