Hi all! I have the following: <select data-ng-model="iduser" class="form-control ng-pristine ng-invalid ng-invalid-required" id="iduser" required="" name="iduser"> <option value="? undefined:undefined ?"></option> <option data-ng-repeat="x in users" data-ng-value="1" class="ng-binding ng-scope" value="1">User1</option> </select> The value 1 come from database table users. How can i set this value as selected in an edit form?
Thanks for help. -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
