Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WARNING: Tried to load angular more than once #73

@dejan7

Description

@dejan7

Only after i inject the 'directives.customvalidation.customValidationTypes to my app module, i get
"WARNING: Tried to load angular more than once" in console. I'm using gulp to load (concat) the files, this is the order:

return gulp.src([
    'source/js/*.js',
    'node_modules/angular/angular.min.js',
    'node_modules/angular-animate/angular-animate.min.js',
    'node_modules/ui-router/release/angular-ui-router.min.js',
    'node_modules/angular-ui-form-validation/dist/angular-ui-form-validation.js',
    'source/main.js',
    'source/routes.js',
    'source/services/*.js',
    'source/models/*.js',
    'source/controllers/*.js',
])

At the very top you see source/js/ folder being loaded, that's where jQuery is. Then i load angular, then i load ui-form-validation. I tried with both jQuery 1.11.3 and 2.1.4 and it's the same. Any ideas?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions