blob: 66a32f108939c3b11caf525b5a18c99ea44ee3b3 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001/// <reference path="../typings/index.d.ts" />
Matteo Scandolod819c922016-12-02 14:06:14 -08002
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08003import * as angular from 'angular';
Matteo Scandolod819c922016-12-02 14:06:14 -08004
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08005import 'angular-ui-router';
6import 'angular-resource';
7import 'angular-cookies';
8import routesConfig from './routes';
9
10import {main} from './app/main';
Matteo Scandolod819c922016-12-02 14:06:14 -080011
12import './index.scss';
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080013import {xosCore} from './app/core/index';
14import {xosRest} from './app/rest/index';
15import {xosViews} from './app/views/index';
16import {interceptorConfig, userStatusInterceptor, CredentialsInterceptor} from './interceptors';
Matteo Scandolod819c922016-12-02 14:06:14 -080017
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080018angular
19 .module('app', [xosCore, xosRest, xosViews, 'ui.router', 'ngResource'])
20 .config(routesConfig)
21 .config(interceptorConfig)
22 .factory('UserStatusInterceptor', userStatusInterceptor)
23 .factory('CredentialsInterceptor', CredentialsInterceptor)
24 .component('xos', main);
Matteo Scandolod819c922016-12-02 14:06:14 -080025