Update setInterval

This commit is contained in:
Philip Bjorge
2016-01-19 23:25:47 -08:00
parent 9f026569c8
commit f7287b046a
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ angular.module('app', ['ngIdle'])
Keepalive.start();
Keepalive.ping();
Keepalive.stop();
Keepalive.setInterval(10);
Title.setEnabled(Title.isEnabled());
Title.original(Title.original());
+6
View File
@@ -145,6 +145,12 @@ declare module angular.idle {
* Performs one ping only.
*/
ping(): void;
/**
* Changes the interval value at runtime.
* You will need to restart the pinging process by calling start() manually for the changes to be reflected.
*/
setInterval(seconds: number): void;
}
/**