File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,28 @@ angular_ui_form_validations = (function(){
395
395
restrict : 'E' ,
396
396
link : customValidationUtil . createValidationLink ( dynamicallyDefinedValidation )
397
397
} ;
398
+ } )
399
+
400
+ . directive ( 'select' , function ( customValidationUtil ) {
401
+ return {
402
+ require : '?ngModel' ,
403
+ restrict : 'E' ,
404
+ link : customValidationUtil . createValidationLink ( dynamicallyDefinedValidation )
405
+ } ;
406
+ } )
407
+
408
+ . directive ( 'select' , function ( customValidationUtil ) {
409
+ return {
410
+ require : '?ngModel' ,
411
+ restrict : 'E' ,
412
+ link : customValidationUtil . createValidationLink ( {
413
+ customValidationAttribute : 'validationFieldRequired' ,
414
+ errorMessage : 'This is a required field' ,
415
+ validator : function ( errorMessageElement , val ) {
416
+ return ( / \S / ) . test ( val ) ;
417
+ }
418
+ } )
419
+ } ;
398
420
} ) ;
399
421
400
422
You can’t perform that action at this time.
0 commit comments