-
Notifications
You must be signed in to change notification settings - Fork 51
Manually triggering the validations
Nelson Omuto edited this page Mar 4, 2014
·
1 revision
The angular-ui-form-validation directive adds a listener on the scope object that listens for the runCustomValidations event on which it will perform its custom validation. This event is triggered whenever there is a change event in the input field.
You may manually invoke 'runCustomValidations' event on the scope of your controller by emitting or broadcasting this event.
Here's a plunker demonstrating validations being manually triggered in the controller: http://plnkr.co/edit/gMAj1v?p=preview
See https://github.com/nelsonomuto/angular-ui-form-validation/issues/20