title: ng-model not working propertly with ng-options and array
body: <p>After changing from ng-repeat in select options to ng-options i came across some problems. The issue is that ng-model sends whole array instead of the selected one.
  I have an array with few values called sms</p>
  
  <pre><code>var sms = ['1','2','3','4','5'];
  </code></pre>
  
  <p>This is how i do it in HTML</p>
  
  <pre><code>&lt;select id="sms-from" ng-options="s.id as s for s in sms" ng-selected="smsSender = s.id " ng-init="s = s.id " ng-model="sendSms.from"&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>This will make dropdown with all the values of sms array, and it should save the selected value to <code>$scope.sendSms.from</code> in my js file.</p>
  
  <p>What it does is saves all the array instead of the selected values.</p>
  
  <p>Were trying to switch from s.id to sms[0] in ng-selected and ng-init, but it gave the same result. </p>
  
  <p>It worked fine when I was using ng-repeat inside option tag's but then the first value were blank so I've started using ng-options which is not a common way for me to do it.</p>
  
  <p>Therefore i ask for you help. </p>
  
  <p>Thanks in advance. </p>