title: Return more than one result in modal angular js
body: <p>I have an angularjs app.
  I added a button to my app and when a user clicks on it , a pop up screen is displayed.
  The user should choose from 2 drop down lists so i have two values that i need to send back to my service who opened the modal screen.</p>
  
  <p>The service that opens the pop up screen</p>
  
  <pre><code>app.service('OriginalService', [ '$modal',
  function ($modal) {
  
  this.openDialog = function(){
          var modalInstance = $modal.open({
              templateUrl: 'ModalScreen.html',
              controller: 'ModalController'
          });
  
          modalInstance.result.then(function (oneFilter, secondFilter) {
              this.filtersMananger.oneFilter= oneFilter;
              this.filtersMananger.secondFilter= secondFilter;
          }, function () {
  
          });
      };
  }]);
  </code></pre>
  
  <p>In the ModalController when i click OK i sent the two values:</p>
  
  <pre><code>app.controller('ModalController', ['$scope', '$modalInstance',
                                       function ($scope, $modalInstance) {
  
  $scope.ok = function () {
          $modalInstance.close($scope.filterMananger.oneFilter, 
                               $scope.filterMananger.secondFilter);
      };
  }]);
  </code></pre>
  
  <p>The problem is that only the first value is return to the service.
  I saw in other examples and maybe in angular they expected to one result only:</p>
  
  <pre><code>modalInstance.result.then(function (result)
  </code></pre>
  
  <p>Can i send two or values as a result or must i send an object with the two values only in this case?</p>