blob: f499d4e0fa7b19772608e94c6d4785cd1411a1f9 [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 Scandolo7547f042016-02-09 09:13:30 -080011 Subscribers.queryWithDevices().$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})();