Click here to Skip to main content
15,921,156 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<select class="form-control" ng-model="Totaloptions.RowsPerPage" ng-options="item.Text for item in lstRowsPerPage" ng-init="RowsPerPage = 10">
Posted
Updated 17-Sep-16 8:47am
v2
Comments
OkuDoku 16-Sep-16 8:39am    
i don't quite grasp what your problem is. can you provide more information? or at least a real question?
Karthik_Mahalingam 16-Sep-16 9:28am    
what do you meant by default value?

1 solution

copied the code from link under heading "setting default option in select "

[^]

<br />
<div ng-controller="ExampleController"><br />
  <form name="myForm"><br />
    <label for="mySelect">Make a choice:</label><br />
    <select name="mySelect" id="mySelect" <br="" mode="hold">      ng-options="option.name for option in data.availableOptions track by option.id"      ng-model="data.selectedOption"></select><br />
  </form><br />
  <hr><br />
  <tt>option = {{data.selectedOption}}</tt><br><br />
</div><br />
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900