title: Autoselect select option based on response with Angular
body: <p>This is the way my form group for select looks like.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label&gt;Active&lt;/label&gt;
      &lt;select class="form-control" ng-model="activeState" &gt;
          &lt;option ng-value="0" &gt;No&lt;/option&gt;
          &lt;option ng-value="1" &gt;Yes&lt;/option&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the response from api i get is <code>1</code> or <code>0</code> in my current case <code>{{activeState}} displays 1</code>. How to handle this with angular that proper select  will be automatically selected based on response? </p>
  
  <p>If you need any additional information's please let me know and i will provide. Thank you</p>