title: Select default value with condition in ng-options
body: <p>I have an angular app with the following array:</p>
  
  <pre><code>countries = [{"code": "ZA", "name": "South Africa"}, {"code": "CH", "name": "Switzerland"}]
  </code></pre>
  
  <p>with a Jade select as follow:</p>
  
  <pre><code>select(ng-model='myCountry', ng-options='country.name for country in countries')
  </code></pre>
  
  <p>What I would like to do is to pre-select a country based on the code for example:</p>
  
  <pre><code>select(ng-model='myCountry', ng-options='country.name for country in countries', ng-selected='country.code=="CH"')
  </code></pre>
  
  <p>Obviously, this solution doesn't work as ng-selected is not intended to be used in a select but in an option tag.</p>
  
  <p>It is important for me to use a conditional selection and not a default index value like in the <a href="https://docs.angularjs.org/api/ng/directive/select" rel="nofollow">angularJS example</a>. </p>