From babf58021e23bc17a25ac4e0a784ce43bc1950be Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Thu, 11 Dec 2014 19:36:09 +0100 Subject: [PATCH] Statistics are now updated dynamically. --- index.html | 6 +++--- js/app.js | 8 +------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 9c9d586..0119490 100644 --- a/index.html +++ b/index.html @@ -242,9 +242,9 @@ diff --git a/js/app.js b/js/app.js index cd94e4e..69cfd8f 100644 --- a/js/app.js +++ b/js/app.js @@ -156,13 +156,7 @@ }]); app.controller('StatsController', function($scope) { - $scope.stats = { - clicks: lab.state.clicks, - moneyCollected: lab.state.moneyCollected, - moneySpent: lab.state.moneySpent, - dataCollected: lab.state.dataCollected, - dataSpent: lab.state.dataSpent - }; + $scope.lab = lab; }); analytics.init();