title: How to get the selected option from ui-select multiple
body: <p>I have some issues figuring out how to get the selected value in a multi select form from <code>ui-select</code>. 
  I have made a snippet to show you what I want to do. In my html I have a made an ui-select with an ng-change-event callback: <code>ng-change="onDatasetChanged(whatShouldBehere?)"</code>. When the option is selected, I want to print the selected model only inside the <code>onDatasetChanged()</code>-method in my controller. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>angular.module('myApp',['ui.select']).controller('MyController', function ($scope) {
    
    $scope.myUiSelect={model:{}}; // encapsulate your model inside an object.
    $scope.availableData=["a","b","c"]; //some random options
    
    $scope.onDatasetChanged = function(selectedValue){
      console.log("selectedValue",selectedValue);
    }
    
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://rawgit.com/angular-ui/ui-select/master/dist/select.css" rel="stylesheet"/&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://rawgit.com/angular-ui/ui-select/master/dist/select.js"&gt;&lt;/script&gt;
  &lt;body ng-app="myApp" ng-controller="MyController"&gt;
    
    
    
    &lt;ui-select multiple ng-model="myUiSelect.model" close-on-select="false" title="Choose a dataset" ng-change="onDatasetChanged(whatShouldBehere?)"&gt;
      &lt;ui-select-match placeholder="Select something"&gt;{{$item.label}}&lt;/ui-select-match&gt;
        &lt;ui-select-choices repeat="data in availableData | filter:$select.search"&gt;
                          {{data}}
        &lt;/ui-select-choices&gt;
    &lt;/ui-select&gt;
    
    
    
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>