Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

Integrating into Legacy Applications

Jon Samwell edited this page Dec 2, 2015 · 3 revisions

If you wish to only have auto-validate working on specific forms you would be best to globally disable the library and enable it on specific forms.

Firstly disabled the library global.

   function RunFn(validator) {
      validator.defaultFormValidationOptions.disabled= true;
    }
    
    RunFn.$inject = [
      'validator'
    ];
    
    app.run(RunFn);

Then enable it on a per form basis:

<form ng-sumbit="vm.submit()" disable-dynamic-validation="false" novalidate>
   ....
</form>
Clone this wiki locally