My current scenario:
myApp.config(['$routeProvider', function ($routeProvider)
{
$routeProvider.when('/home', {templateUrl: 'partials/home.html', controller: 'homeCtrl'});
}
this is my curernt .config()how can i integrate the following code into my correct code:
.config(function(IdleProvider, KeepaliveProvider) {
IdleProvider.idle(10*60);
IdleProvider.timeout(30);
KeepaliveProvider.interval(5*60);
})
.run(function($rootScope) {
$rootScope.$on('IdleTimeout', function() {
});
});
I am new to angularJS. PS ask a question to encourage me to ask questions here.
source
share