github.com/sym3tri/etcd@v0.2.1-0.20140422215517-a563d82f95d6/mod/dashboard/app/page/stats/stats-detail-ctrl.js (about) 1 'use strict'; 2 3 angular.module('etcd.page') 4 .controller('StatsDetailCtrl', function($scope, $modalInstance, _, etcdApiSvc, 5 peerName) { 6 7 etcdApiSvc.fetchPeerDetailStats(peerName) 8 .then(function(stats) { 9 $scope.stats = stats; 10 $scope.objectKeys = _.without(_.keys($scope.stats), '$$hashKey'); 11 }); 12 13 $scope.identityFn = _.identity; 14 15 $scope.close = function() { 16 $modalInstance.dismiss('close'); 17 }; 18 19 });