title: Default selected value in select with ng-repeat
body: <p>I'm trying to have a default selected value with ng-selected but it doesn't works. </p>
  
  <p>My code is</p>
  
  <pre><code>&lt;select 
      id="department" 
      name="department" 
      class="form-control"
      ng-model="editProfilCtrl.infos.department"
      ng-change="editProfilCtrl.findCities()"&gt;
          &lt;option 
              ng-repeat="dep in editProfilCtrl.infos.departments" 
              class="text-uppercase" 
              value="{{dep}}"
              ng-selected="{{dep.idDepartment == editProfilCtrl.infos.department}}"&gt;
              {{editProfilCtrl.infos.department}} - {{dep.idDepartment}} - {{dep.code}} - {{dep.name}}
          &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>In my dropdown list I have this results :</p>
  
  <ul>
  <li>(empty)</li>
  <li>1 - 1 - Code01 - TEST1</li>
  <li>1 - 2 - Code02 - TEST2</li>
  <li>1 - 3 - Code03 - TEST3</li>
  <li>...</li>
  </ul>
  
  <p>You can see that editProfilCtrl.infos.department = 1. So, normally it must be selected by default. But this is the empty line which is selected :/.
  Do you have an idea ?</p>
  
  <p>Thanks.</p>
  
  <p>Edit : the <strong>mac gyver</strong> "solution" :</p>
  
  <pre><code>&lt;select 
      id="department" 
      name="department" 
      class="form-control"
      ng-model='editProfilCtrl.infos.department' 
      ng-change="editProfilCtrl.findCities()"
      ng-options='dep as dep.code + " - " + dep.name for dep in editProfilCtrl.infos.departments'&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>with in my controller :</p>
  
  <pre><code>self.infos.selectedDepartment = editProfilFormDto.department;
  self.infos.departments = editProfilFormDto.departments;
  self.infos.department = self.infos.departments[self.infos.selectedDepartment - 1];
  </code></pre>