Matteo Scandolo | 46b5610 | 2015-12-16 14:23:08 -0800 | [diff] [blame] | 1 | angular.module('autoscaling') |
| 2 | .directive('serviceContainer', function(lodash){ |
| 3 | return { |
| 4 | restrict: 'E', |
| 5 | scope: {}, |
| 6 | bindToController: true, |
| 7 | controllerAs: 'vm', |
| 8 | templateUrl: 'templates/service-container.tpl.html', |
Matteo Scandolo | 8942e04 | 2015-12-16 14:41:21 -0800 | [diff] [blame^] | 9 | controller: ($rootScope) => { |
| 10 | $rootScope.$on('autoscaling.update', (evt, data) => { |
| 11 | console.log(data); |
| 12 | }); |
Matteo Scandolo | 46b5610 | 2015-12-16 14:23:08 -0800 | [diff] [blame] | 13 | } |
| 14 | }; |
| 15 | }); |