title: How to set a default value to ng-options (multiple select)
body: <p>I wanted to set a default value to my ng-options by using <code>ng-init</code>, <code>ng-model</code>, etc. They didn't work at all. My code is following:</p>
  
  <p><strong>Angular</strong></p>
  
  <pre><code>var app = angular.module('role', []);
  
  app.controller('fooController', function($scope){
      $scope.roles = [{id:1, name:"Administrator"}, {id:2, name: "Student"}];
      $scope.user.roles = $scope.roles[0];
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;body data-ng-app="role" data-ng-controller="fooController"&gt;
    &lt;select multiple class="form-control" data-ng-model="user.roles" data-ng-options="role.name for role in roles" required=""&gt;&lt;/select&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Here is my <a href="http://plnkr.co/edit/WIo3UgoZ0vIJy4OrXC57?p=preview" rel="noreferrer">Plunkr.</a>
  Any help would be appreciated. </p>