Matteo Scandolo | 968e7f2 | 2017-03-03 11:49:18 -0800 | [diff] [blame^] | 1 | import {IXosServiceGraphStore} from '../../services/graph.store'; |
| 2 | import {IXosServiceGraph} from '../../interfaces'; |
| 3 | class XosCoarseTenancyGraphCtrl { |
| 4 | |
| 5 | static $inject = ['$log', 'XosServiceGraphStore']; |
| 6 | |
| 7 | public graph: IXosServiceGraph; |
| 8 | |
| 9 | constructor ( |
| 10 | private $log: ng.ILogService, |
| 11 | private XosServiceGraphStore: IXosServiceGraphStore |
| 12 | ) { |
| 13 | |
| 14 | this.XosServiceGraphStore.getCoarse() |
| 15 | .subscribe((res) => { |
| 16 | this.graph = res; |
| 17 | }); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | export const XosCoarseTenancyGraph: angular.IComponentOptions = { |
| 22 | template: require('./coarse.component.html'), |
| 23 | controllerAs: 'vm', |
| 24 | controller: XosCoarseTenancyGraphCtrl, |
| 25 | }; |