title: Make an option selected in select field during form edit in angularjs
body: <p>I have a form with data which is to edit by user. I am getting form data using $http service of angularJS. I have done all, but I cannot make a select field's option selected (I am new in angularJS). I am setting select field's data in an array like below - </p>
  
  <pre><code>$scope.currency = [];
  angular.forEach(data.currency, function(data) {
     $scope.currency.push({
          symbol: data.symbol,
          alpha_code: data.alphaCode,
          currency: data.currency
      });
  });
  </code></pre>
  
  <p>And in html, I am generating select field like below - </p>
  
  <pre><code>&lt;select name="currency_advance" class="form-control" ng-model="invoice_currency"&gt;
  
       &lt;option ng-repeat="data in currency" data-type="{{data.symbol}}" value="{{data.alpha_code}}"&gt;{{data.alpha_code + '-' + data.currency}}&lt;/option&gt;
  
  &lt;/select&gt;
  </code></pre>
  
  <p>Any solution how to make an option selected in angularJS?</p>