title: Show Selected Options along with others in an Angularjs Dropdown
body: <p>I am creating a bloggin software and I created a Angularjs dropdown as follows to select terms for the post</p>
  
  <pre><code>   &lt;select multiple="multiple" name="terms" ng-model="post.data.attributes.term_ids" required&gt;
               &lt;option value="" disabled="" selected=""&gt;Tags&lt;/option&gt;
  
               &lt;option ng-repeat="term in terms | filter: { taxonomy: 'tag' } " value="{{term.id}}"&gt;{{term.name}}&lt;/option&gt;
       &lt;/select&gt;
  </code></pre>
  
  <p>This works fine when I create the post, but when I edit the post I want to also show the terms which were selected while creating the post.</p>
  
  <p>i.e if the "term.id in post.data.attributes.term_ids" then the term must be selected in the dropdown. I have been reading the docs and other examples but I am not sure how to go about doing this any help will be apreciated.</p>