blob: 73af667cafe6c7ae1bc6833ef7d65eb0249af21d [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'])
Yuta HIGUCHI4f39bcd2014-12-18 20:46:14 -080027 .controller('OnosCtrl', ['$log', 'KeyService', 'ThemeService',
28 function (_$log_, ks, ts) {
Simon Huntdc6362a2014-12-18 19:55:23 -080029 var $log = _$log_,
30 self = this;
31
32 self.version = '1.1.0';
33
34 // initialize onos (main app) controller here...
Yuta HIGUCHI4f39bcd2014-12-18 20:46:14 -080035 ts.init();
Simon Hunt420691a2014-12-16 20:16:28 -080036 ks.installOn(d3.select('body'));
Simon Huntdc6362a2014-12-18 19:55:23 -080037
38 $log.log('OnosCtrl has been created');
Simon Huntc2202d52014-12-16 13:30:15 -080039 }]);
40
41}());