Click here to Skip to main content
14,272,287 members
Rate this:
Please Sign up or sign in to 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

Rate this:
Please Sign up or sign in to vote.

Solution 2

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 />
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100