blob: 03d248cdb3c09ac1d1c01122db2ce1393f193ae9 [file] [log] [blame]
Matteo Scandoloe19fa102017-03-09 15:38:59 -08001/// <reference path="../typings/index.d.ts" />
2import * as angular from 'angular';
3
4import 'angular-ui-router';
5import 'angular-resource';
6import 'angular-cookies';
7import routesConfig from './routes';
8import {xosVtrDashboardComponent} from './app/components/vtr/vtr-dashboard';
9import {XosVtrTruckroll} from './app/services/truckroll.resource';
10
11angular.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 });