Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [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 | import routesConfig from './routes'; |
| 8 | import {xosVtrDashboardComponent} from './app/components/vtr/vtr-dashboard'; |
| 9 | import {XosVtrTruckroll} from './app/services/truckroll.resource'; |
| 10 | |
| 11 | angular.module('xos-vtr-gui-extension', [ |
| 12 | 'ui.router', |
| 13 | 'app' |
| 14 | ]) |
| 15 | .config(routesConfig) |
| 16 | .service('XosVtrTruckroll', XosVtrTruckroll) |
| 17 | .component('xosVtrDashboardComponent', xosVtrDashboardComponent) |
| 18 | .run(function($log: ng.ILogService, XosNavigationService: any) { |
| 19 | $log.info('[xos-vtr-gui-extension] App is running'); |
| 20 | |
| 21 | XosNavigationService.add({ |
| 22 | label: 'vTR', |
| 23 | state: 'xos.vtr', |
| 24 | }); |
| 25 | |
| 26 | XosNavigationService.add({ |
| 27 | label: 'Dashboard', |
| 28 | state: 'xos.vtr.dashboard', |
| 29 | parent: 'xos.vtr' |
| 30 | }); |
| 31 | }); |