Max Chu | 3c8b65f | 2017-07-19 17:47:59 -0700 | [diff] [blame^] | 1 | /// <reference path="../typings/index.d.ts" /> |
| 2 | import * as angular from 'angular'; |
| 3 | |
| 4 | import 'angular-ui-router'; |
| 5 | import 'angular-resource'; |
| 6 | import 'angular-cookies'; |
| 7 | |
| 8 | import 'ngmap'; |
| 9 | |
| 10 | import routesConfig from './routes'; |
| 11 | import {mngMap} from './app/components/mngMap.component'; |
| 12 | import {elineSide} from './app/components/eline-side.component'; |
| 13 | |
| 14 | angular.module('metro-net-gui', [ |
| 15 | 'ui.router', |
| 16 | 'app', |
| 17 | 'ngMap' |
| 18 | ]) |
| 19 | .config(routesConfig) |
| 20 | .component('mngMap', mngMap) |
| 21 | .component('elineSide', elineSide) |
| 22 | .run(function( |
| 23 | $log: ng.ILogService, |
| 24 | $state: ng.ui.IStateService, |
| 25 | XosNavigationService: any, |
| 26 | XosComponentInjector: any) { |
| 27 | $log.info('[metro-net-gui] App is running'); |
| 28 | |
| 29 | XosNavigationService.add({ |
| 30 | label: 'Metronet GUI', |
| 31 | state: 'xos.metro-net-gui', |
| 32 | }); |
| 33 | |
| 34 | }); |