Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Tried to load angular more than once #73

Open
dejan7 opened this issue Nov 26, 2015 · 0 comments
Open

WARNING: Tried to load angular more than once #73

dejan7 opened this issue Nov 26, 2015 · 0 comments

Comments

@dejan7
Copy link

dejan7 commented Nov 26, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant