Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 1 | import {xosDataSources} from '../datasources/index'; |
| 2 | import {XosServiceGraphStore} from './services/graph.store'; |
| 3 | import {xosCore} from '../core/index'; |
Matteo Scandolo | 968e7f2 | 2017-03-03 11:49:18 -0800 | [diff] [blame] | 4 | import {XosCoarseTenancyGraph} from './components/coarse/coarse.component'; |
Matteo Scandolo | 7517178 | 2017-03-08 14:17:01 -0800 | [diff] [blame] | 5 | import {XosFineGrainedTenancyGraph} from './components/fine-grained/fine-grained.component'; |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 6 | export const xosServiceGraph = 'xosServiceGraph'; |
| 7 | |
| 8 | angular |
| 9 | .module(xosServiceGraph, [xosDataSources, xosCore]) |
| 10 | .service('XosServiceGraphStore', XosServiceGraphStore) |
Matteo Scandolo | 968e7f2 | 2017-03-03 11:49:18 -0800 | [diff] [blame] | 11 | .component('xosCoarseTenancyGraph', XosCoarseTenancyGraph) |
Matteo Scandolo | 7517178 | 2017-03-08 14:17:01 -0800 | [diff] [blame] | 12 | .component('xosFineGrainedTenancyGraph', XosFineGrainedTenancyGraph) |
| 13 | .config(($stateProvider) => { |
| 14 | $stateProvider |
| 15 | .state('xos.fine-grained-graph', { |
| 16 | url: 'tenancy-graph', |
| 17 | component: 'xosFineGrainedTenancyGraph', |
| 18 | }); |
| 19 | }) |
Matteo Scandolo | 968e7f2 | 2017-03-03 11:49:18 -0800 | [diff] [blame] | 20 | .run(($log: ng.ILogService) => { |
Matteo Scandolo | a62adbc | 2017-03-02 15:37:34 -0800 | [diff] [blame] | 21 | $log.info(`[${xosServiceGraph}] Module Setup`); |
| 22 | }); |