title: Set ng-model for dropdown which generated from dictionary in Angular
body: <p>I have dropdown which retrieve data from Dictionary(int,string):</p>
  
  <pre><code>&lt;select 
      class="form-control" 
      data-ng-model="model.Case.OwnerUserId" 
      data-ng-options="key as value for (key,value) in model.OwnerUsers" &gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><code>model.Case.OwnerUserId</code> is <code>int</code> value which i try to bind by <code>ng-model</code> directive and set selected value for dropdown.But dropdown left unselected. What i do wrong in this situation?</p>
  
  <p>UPDATE: Part of view models data</p>
  
  <pre><code>public class CaseViewModel
  {
      public Case Case { get; set; }
  
      public Dictionary&lt;int,string&gt; Facilities { get; set; }
  
      public Dictionary&lt;int, string&gt; OwnerUsers { get; set; }
  }
  
  public class Case
  {
      public int CaseId { get; set; }
  
      public int ResidentId { get; set; }
  
      public int OwnerUserId { get; set; } ...
  </code></pre>
  
  <p>Sample of JS Model after serialize:</p>
  
  <pre><code>{
  "Case": {
      "CaseId": 27,
      "ResidentId": 4478,
      "OwnerUserId": 15,
      "CreatedByUserId": 20,
      "LastUpdatedUserId": null,
      "ReceivedDate": "2014-06-23T12:49:54.713", ...
  
  
  "OwnerUsers": {
      "35": "a.markov",
      "15": "a.zaharov",
      "20": "e.martynov",
      "36": "a.oryel",
      "40": "test01"
  }
  </code></pre>