javascript - Searching for acceleration -


i using $routeprovider in angular. whenever go particular route see log in console:

xhr finished loading: "http://localhost:8080/root/partials/view1.html". xhr finished loading: "http://localhost:8080/root/partials/view2.html". ... 

at point particular pages cached think in browser , referenced faster. how can make xhrs routes in background when angular referenced first time? search this:

for ( /* every page inside routeprovider */ ) {     // xhrs page } 

your question answered examples in documentation.

to summarise: can inject $templatecache run method (possibly along $route if want template urls route table), , insert templates cache.

hth!


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -