blob: b64e80694c75f0e213928926c5e401e2f832ab3d [file] [log] [blame]
import {IXosServiceGraphStore} from '../../services/graph.store';
import {IXosServiceGraph} from '../../interfaces';
class XosCoarseTenancyGraphCtrl {
static $inject = ['$log', 'XosServiceGraphStore'];
public graph: IXosServiceGraph;
constructor (
private $log: ng.ILogService,
private XosServiceGraphStore: IXosServiceGraphStore
) {
this.XosServiceGraphStore.getCoarse()
.subscribe((res) => {
this.graph = res;
});
}
}
export const XosCoarseTenancyGraph: angular.IComponentOptions = {
template: require('./coarse.component.html'),
controllerAs: 'vm',
controller: XosCoarseTenancyGraphCtrl,
};