Set dropdown to a particular value in AngularJS
<p>I have the following HTML code and want the select dropdown once loaded to automatically select the entry coming from the DB - in this case from the rule.id variable. How do I do this in AngularJS?</p>

<pre><code>&lt;div class="card-second-input" ng-if="rule.unfolded"&gt;
  &lt;select ng-init="rule.actionId" class="rectangle-30" ng-class="rules-option" ng-model="selectedAction" ng-options="team.name for team in teams track by team.id"&gt;
    &lt;option class="rules-option" value=""&gt;Select Team&lt;/option&gt;
  &lt;/select&gt;
&lt;/div&gt;
</code></pre>

<p>P.S I am using Angular 1.x</p>