blob: db104dd44fce9229507045ac66335d8fd55c5d85 [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/*
18 ONOS GUI -- Base Framework
19
20 @author Simon Hunt
21 */
Simon Hunt1eecfa22014-12-16 14:46:29 -080022
23// our one global variable
24var ONOS;
25
Simon Huntc2202d52014-12-16 13:30:15 -080026(function () {
27 'use strict';
28
Simon Hunt1eecfa22014-12-16 14:46:29 -080029 ONOS = angular.module('onosApp', ['onosMast'])
30 .controller('OnosCtrl', ['KeyService', function (ks) {
Simon Huntc2202d52014-12-16 13:30:15 -080031 console.log('OnosCtrl has been created');
Simon Hunt420691a2014-12-16 20:16:28 -080032 ks.installOn(d3.select('body'));
Simon Huntc2202d52014-12-16 13:30:15 -080033 }]);
34
35}());