Xp history

This commit is contained in:
Garry Newman
2016-02-29 17:12:24 +00:00
parent 9732dafb47
commit 5fa14a3247
7 changed files with 229 additions and 19 deletions
+8 -1
View File
@@ -1,7 +1,7 @@
app.controller( 'PlayerListController', PlayerListController );
function PlayerListController( $scope, rconService )
function PlayerListController( $scope, rconService, $interval )
{
$scope.Output = new Array();
@@ -14,4 +14,11 @@ function PlayerListController( $scope, rconService )
}
rconService.InstallService( $scope, $scope.Refresh )
var timer = $interval( function ()
{
//$scope.Refresh();
}.bind( this ), 1000 );
$scope.$on( '$destroy', function () { $interval.cancel( timer ) } )
}