title: send multiple parameters when close a modalInstance
body: <p>I have a angular project with modals, and I want send multiple (two) parameters when I close, the problem is the second argument it gives undefined, my code is the following</p>
  
  <pre><code>/*Modal controller*/
  angular.module('assetModule')
    .controller('assetModalLocationCtrl', ['locationRESTService','$modalInstance','$scope', '$q', assetModalLocationCtrl]);
  
      function assetModalLocationCtrl (locationRESTService, $modalInstance, $scope, $q) {  
  
      this.ok = function () {   
        $scope.info.selected = selected ($scope.data.locations)
        $modalInstance.close($scope.data.locations, $scope.info.selected);      
      };
  }
  
  /*Controller that invoke the modal*/
  this.modalLocation = function modalLocation (size){
      var modalInstance = $modal.open({
        animation: this.animationsEnabled,
        templateUrl: 'views/asset/assetLocationModal.html',
        controller: 'assetModalLocationCtrl',
        controllerAs: 'modalLocation',
        size: size,
  
      });
  
      modalInstance.result.then(function (selectedItem, locationList) {
       console.log(selectedItem);
       console.log(locationList);
      }, function () {
        console.log('Modal dismissed at: ' + new Date());
      });
  }
  </code></pre>