title: Select dropdown value based on value in DB
body: <p>I am new to angular JS. I have a dropdown box where static options with values are present.
  Based on condition I have to select the default value which matches the value from Database. How can it be achieved?
  model="TemplateObj.IsActive" has the int value 0,1 or 2 from DataBase. </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-html lang-html prettyprint-override"><code>  &lt;label class=""&gt;STATUS&lt;/label&gt;
  &lt;select class="form-control input-sm" style="border: none" required ng-model="TemplateObj.IsActive" &gt;
   &lt;option value="2"&gt;In Development&lt;/option&gt;
   &lt;option value="1"&gt;Active&lt;/option&gt;
   &lt;option value="0"&gt;InActive&lt;/option&gt;
   &lt;/select&gt;</code></pre>
  </div>
  </div>
  </p>