blob: b64e80694c75f0e213928926c5e401e2f832ab3d [file] [log] [blame]
Matteo Scandolo968e7f22017-03-03 11:49:18 -08001import {IXosServiceGraphStore} from '../../services/graph.store';
2import {IXosServiceGraph} from '../../interfaces';
3class 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
21export const XosCoarseTenancyGraph: angular.IComponentOptions = {
22 template: require('./coarse.component.html'),
23 controllerAs: 'vm',
24 controller: XosCoarseTenancyGraphCtrl,
25};