Now, I need to inject angular.ui.validate library (<a class="postlink" href="https://github.com/angular-ui/ui-validate">https://github.com/angular-ui/ui-validate</a>) to my project. I need to inject angular.ui.validate library is becuz i need used uiValidateAsync directive to do my form validation. But i found that (angular.ui)folder's (ui-utils.js) file has a same angular.module name with the file that i wanted to inject.
Question
- Can I run multiple angular.module with as same name in my project?
- Izit (ui-utils.js)file's angular.module(ui.Validate) behavior is same with angular.ui.validate library's angular.module(ui.Validate) (<a class="postlink" href="https://github.com/angular-ui/ui-validate">https://github.com/angular-ui/ui-validate</a>)?
- if i uninjected that (ui-utils.js)file's angular.module ('ui.validate') and run my new injection which is angular.ui.validate library , izit will cause any problem to came out ?
Thanks. /Tommy
3 Answer(s)
-
0
@tteoh,
I assume you are using AngularJS. ui-utils.js belongs to Angular-UI library. and <a class="postlink" href="https://github.com/angular-ui/ui-validate">https://github.com/angular-ui/ui-validate</a> also belongs to Angular-UI. As I understand, Angular-UI team seperated some of the modules in ui-utils. So, if you update angular-ui, then you can use it without a problem.
-
0
@ismcagdas,
Ya, I'm using Angularjs.
Thanks for your ans :D
-
0
did you fix it?