javascript - jQuery is loading my root route and all the scripts again through XHR -


i'm stuck problem few days , think time help.

i'm updating angular app v1.3.0-beta.17 v.1.3.x (head) , i'm getting message warning: tried load angular more once.. weird thing noticed jquery loading / route , scripts again afterwards through ajax. see:

networks panel requests made jquery

also problem occurs 1 route (described below). have ideas on why jquery behaving this?

here's routes:

javascript $routeprovider .when('/', { 'controller': 'loading', 'templateurl': versioning('/assets/template/system/blank.html') }) .when('/dashboard/:dashboard_id', { // route error 'controller': 'loading', 'templateurl': versioning('/assets/template/dashboard/dashboard.html') }) .when('/dashboard/:dashboard_id/widget', { 'controller': 'loading', 'templateurl': versioning('/assets/template/dashboard/widget.html') }) .when('/dashboard/:dashboard_id/widget/:widget_id', { 'controller': 'loading', 'templateurl': versioning('/assets/template/dashboard/widget.html') }) //... .otherwise({ 'templateurl': versioning('/assets/template/system/404.html') });

this have url pointing file not exist or missing end of , html tag or causes html invalid. double check url paths , html correct.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -