GUI -- Added KeyService and FnService; implemented 'T' key for toggle theme.
Change-Id: I6ae3cb76aaa5c72422eac180cb46d604ead21afc
diff --git a/web/gui/src/main/webapp/app/onos.js b/web/gui/src/main/webapp/app/onos.js
index ea29256..631464b 100644
--- a/web/gui/src/main/webapp/app/onos.js
+++ b/web/gui/src/main/webapp/app/onos.js
@@ -19,13 +19,17 @@
@author Simon Hunt
*/
+
+// our one global variable
+var ONOS;
+
(function () {
'use strict';
- angular.module('onosApp', ['onosMast'])
- .controller('OnosCtrl', [function () {
- // controller logic here
+ ONOS = angular.module('onosApp', ['onosMast'])
+ .controller('OnosCtrl', ['KeyService', function (ks) {
console.log('OnosCtrl has been created');
+ ks.init();
}]);
}());