(function(){
  'use strict';

  angular.module('cla.controllers')
    .controller('DiagnosisSummaryCtrl',
      ['$scope', '$state',
        function($scope, $state) {
          $scope.delete = function() {
            $scope.diagnosis.$delete({'case_reference': $scope.case.reference}, function() {
              $scope.case.diagnosis = null;
            });
          };
        }
      ]
    );
})();
(function(){
  'use strict';

  angular.module('cla.controllers')
    .controller('DiagnosisSummaryCtrl',
      ['$scope',
        function($scope) {
          $scope.delete = function() {
            $scope.diagnosis.$delete({'case_reference': $scope.case.reference}, function() {
              $scope.case.diagnosis = null;
            });
          };
        }
      ]
    );
})();
Remove state from summary controller
Remove state from summary controller
