blob: 1fece5915d6e9e203b5569dce1b333eb9d5d7167 [file] [log] [blame]
Simon Huntc2202d52014-12-16 13:30:15 -08001/*
2 * Copyright 2014 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
Simon Huntdc6362a2014-12-18 19:55:23 -080018 ONOS GUI -- Main Application Module
Simon Huntc2202d52014-12-16 13:30:15 -080019
20 @author Simon Hunt
21 */
Simon Hunt1eecfa22014-12-16 14:46:29 -080022
Simon Huntc2202d52014-12-16 13:30:15 -080023(function () {
24 'use strict';
25
Simon Huntdc6362a2014-12-18 19:55:23 -080026 angular.module('onosApp', ['onosUtil', 'onosMast'])
27 .controller('OnosCtrl', ['$log', 'KeyService', function (_$log_, ks) {
28 var $log = _$log_,
29 self = this;
30
31 self.version = '1.1.0';
32
33 // initialize onos (main app) controller here...
Simon Hunt420691a2014-12-16 20:16:28 -080034 ks.installOn(d3.select('body'));
Simon Huntdc6362a2014-12-18 19:55:23 -080035
36 $log.log('OnosCtrl has been created');
Simon Huntc2202d52014-12-16 13:30:15 -080037 }]);
38
39}());