Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame^] | 1 | /// <reference path="../typings/index.d.ts" /> |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 2 | |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame^] | 3 | import * as angular from 'angular'; |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 4 | |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame^] | 5 | import 'angular-ui-router'; |
| 6 | import 'angular-resource'; |
| 7 | import 'angular-cookies'; |
| 8 | import routesConfig from './routes'; |
| 9 | |
| 10 | import {main} from './app/main'; |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 11 | |
| 12 | import './index.scss'; |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame^] | 13 | import {xosCore} from './app/core/index'; |
| 14 | import {xosRest} from './app/rest/index'; |
| 15 | import {xosViews} from './app/views/index'; |
| 16 | import {interceptorConfig, userStatusInterceptor, CredentialsInterceptor} from './interceptors'; |
Matteo Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 17 | |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame^] | 18 | angular |
| 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 Scandolo | d819c92 | 2016-12-02 14:06:14 -0800 | [diff] [blame] | 25 | |