2 * Copyright (c) 2016 highstreet technologies GmbH and others. All rights reserved.
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
9 define(['angularAMD', 'app/routingConfig', 'app/core/core.services', 'common/config/env.module',
10 'app/mwtnCommons/mwtnCommons.module'], function(ng) {
11 var mwtnClosedLoopApp = angular.module('app.mwtnClosedLoop', ['ui.grid', 'ui.bootstrap', 'app.core', 'ui.router.state','config']);
13 mwtnClosedLoopApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
14 mwtnClosedLoopApp.register = {
15 controller : $controllerProvider.register,
16 directive : $compileProvider.directive,
17 factory : $provide.factory,
18 service : $provide.service
23 NavHelperProvider.addControllerUrl('app/mwtnClosedLoop/mwtnClosedLoop.controller');
24 NavHelperProvider.addToMenu('mwtnClosedLoop', {
25 "link" : "#/mwtnClosedLoop",
26 "active" : "main.mwtnClosedLoop",
27 "title" : "MWTN Closed Loop Automation",
28 "icon" : "fa fa-circle-o", // Add navigation icon css class here
30 "title" : "MWTN Closed Loop Automation",
31 "description" : "mwtnClosedLoop"
35 var access = routingConfig.accessLevels;
37 $stateProvider.state('main.mwtnClosedLoop', {
38 url: 'mwtnClosedLoop',
42 templateUrl: 'src/app/mwtnClosedLoop/mwtnClosedLoop.tpl.html',
43 controller: 'mwtnClosedLoopCtrl'
50 return mwtnClosedLoopApp;