blob: 2b31f31f38dc67f37bf9c11f71545d379a9f8670 [file] [log] [blame]
Matteo Scandolofcdbed32016-02-08 16:55:44 -08001(function () {
2 'use strict';
3
4 angular.module('xos.serviceTopology')
5 .directive('diagnostic', function(){
6 return {
7 restrict: 'E',
8 templateUrl: 'templates/diagnostic.tpl.html',
9 controllerAs: 'vm',
10 controller: function(Subscribers, ServiceRelation){
Matteo Scandolo51031482016-02-17 13:54:11 -080011 Subscribers.query().$promise
Matteo Scandolofcdbed32016-02-08 16:55:44 -080012 .then((subscribers) => {
13 this.subscribers = subscribers;
Matteo Scandolo77d8fa02016-02-16 17:43:00 -080014 return ServiceRelation.get();
Matteo Scandolofcdbed32016-02-08 16:55:44 -080015 })
16 .then((serviceChain) => {
17 this.serviceChain = serviceChain;
18 });
19 }
20 }
21 });
22})();