blob: 2b31f31f38dc67f37bf9c11f71545d379a9f8670 [file] [log] [blame]
(function () {
'use strict';
angular.module('xos.serviceTopology')
.directive('diagnostic', function(){
return {
restrict: 'E',
templateUrl: 'templates/diagnostic.tpl.html',
controllerAs: 'vm',
controller: function(Subscribers, ServiceRelation){
Subscribers.query().$promise
.then((subscribers) => {
this.subscribers = subscribers;
return ServiceRelation.get();
})
.then((serviceChain) => {
this.serviceChain = serviceChain;
});
}
}
});
})();