AngularJS: Retain dropdown option after form submit
<p>I'm using AngularJS to populate a dropdown, is there a way to retain which option was chosen after a form submit?</p>

<p>I'm also using PHP so I have the $_POST values, which I would usually write something like:</p>

<pre><code>&lt;?php if ($_POST['dropdown'] === 'this value') { ?&gt; selected&lt;?php } ?&gt;
</code></pre>

<p>But I cannot in this case as the options are in a loop:</p>

<pre><code>&lt;option ng-repeat="type in Types" value="{{type.Name}}"&gt;{{type.Name}}&lt;/option&gt;
</code></pre>

<p>Any help would be greatly appreciated!</p>