238f3ad3fec727c91cebe7bd169724c3cb3a0009
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnSpectrum / mwtnSpectrum-module / src / main / resources / mwtnSpectrum / mwtnSpectrum.module.js
1 /*
2  * Copyright (c) 2016 highstreet technologies GmbH and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 define(['angularAMD', 
10         'app/routingConfig', 
11         'app/core/core.services', 
12         'common/config/env.module',
13         'app/mwtnCommons/mwtnCommons.module'], function(ng) {
14   var mwtnSpectrumApp = angular.module('app.mwtnSpectrum', ['ui.grid', 'ui.bootstrap', 'app.core', 'ui.router.state','config']);
15
16   mwtnSpectrumApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
17     mwtnSpectrumApp.register = {
18       controller : $controllerProvider.register,
19       directive : $compileProvider.directive,
20       factory : $provide.factory,
21       service : $provide.service
22
23     };
24
25
26     NavHelperProvider.addControllerUrl('app/mwtnSpectrum/mwtnSpectrum.controller');
27     NavHelperProvider.addToMenu('mwtnSpectrum', {
28      "link" : "#/mwtnSpectrum",
29      "active" : "main.mwtnSpectrum",
30      "title" : "MWTN Spectrum",
31      "icon" : "fa fa-bar-chart",  // Add navigation icon css class here
32      "page" : {
33         "title" : "MWTN Spectrum",
34         "description" : "mwtnSpectrum"
35      }
36     });
37
38     var access = routingConfig.accessLevels;
39
40     $stateProvider.state('main.mwtnSpectrum', {
41         url: 'mwtnSpectrum',
42         access: access.admin,
43         views : {
44             'content' : {
45                 templateUrl: 'src/app/mwtnSpectrum/mwtnSpectrum.tpl.html',
46                 controller: 'mwtnSpectrumCtrl'
47             }
48         }
49     });
50
51   });
52
53   return mwtnSpectrumApp;
54 });