Hi, I have same problem. You got any solution for array binding? On Monday, 12 November 2012 23:21:25 UTC+5:30, ehahn wrote: > > I'm embarrassed to say I'm having trouble getting my <options value=xxx> > to be set correctly when binding to an array, e.g (trivial, contrived > example) to have the value match the label: > > <select ng-model="result" ng-options="value as value for value in [123, > 456]"></select> > > I'd like to see: > > <option value="123">123</option> > > but I always see: > > <option value="-index-">123</option> > > Here's the plunk: http://plnkr.co/edit/oyEdHG?p=preview > > BTW, works fine for object binding, just not array binding. Thanks. > >
-- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
