Base solution for your next web application
Open Closed

ui-Validate module #5070


User avatar
0
tteoh created

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

  1. Can I run multiple angular.module with as same name in my project?
  2. 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>)?
  3. 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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @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.

  • User Avatar
    0
    tteoh created

    @ismcagdas,

    Ya, I'm using Angularjs.

    Thanks for your ans :D

  • User Avatar
    0
    alper created
    Support Team

    did you fix it?