angular-validator icon indicating copy to clipboard operation
angular-validator copied to clipboard

Validate only particular validators instead of entire form

Open CarbonFactory opened this issue 10 years ago • 2 comments

Currently $validator.validate($scope, model) validates the entire form. Is it possible to add another option where we can specify our custom validators and then it should validate only these instead of the entire form.

CarbonFactory avatar Mar 18 '15 12:03 CarbonFactory

i think you looking for [validator-group] use validator-group="someGroup" in your form element and then $validator.validate($scope, 'someGroup')

DLoT avatar Mar 18 '15 14:03 DLoT

@DLoT Thanks. Will have a look. Hope it solves my requirement.

CarbonFactory avatar Mar 18 '15 18:03 CarbonFactory