Problem Statement: i am using 3 tabs. tab-a , tab-b and tab-c. each tab will have 5-6 service calls to web api on document load. my problem is, when i click on tab-a..calls from tab-a starts quickly on change of route. but if i click on tab-b sametime, my previous calls will be in process and new more 6 calls will be added from tab-b. i want to abort previous calls from tab-a on switching route. becuase it effects the perofrmance of my Angular SPA.
I am using angular js routing.
app.config(function ($routeProvider) {
$routeProvider
.when('/daily',
{
title: 'Daily - Stats',
templateUrl: '/SPA/Daily.html'
})
.when('/weekly',
{
title: 'Weekly - Stats',
templateUrl: '/SPA/Weekly.html'
})
i have one service to get and post data from web apis.