Closed gchokeen closed 7 years ago
Hi, $validatorProvider
is only available when angular-validate.min.js
is loaded.
Because you use lazy loading, the dependency resolver of Angular doesn't know how to inject $validatorProvider
into your config function.
I got your point!
I also loading the angular-validate.min.js in index.html. I know lazy loading overriding the config. Is there anyway you can think off to make it work with lazy load. because I am using lazy load all over the project :(
If you already load angular-validate.min.js
and jquery.validate.min.js
in your index, there's no need to load it again with lazy loading.
Oh Yes, I removed it and it works well thanks
I configured the global validation settings as below in app.js and I am loading the controller using loadplugin. Global configuration is not picking up in this case.
Note: Inline configuration of options works