I have a select element that is being filled with anywhere from 20-50 names. Currently, the number of elements being displayed is 3 and there is a scrollbar that allows the user to scroll up and down to make the desired selections. Is there a way I can bind the array's length to the size property as well as include an if statement? For example, if I have less than 25 names set the size of the select box to 10, otherwise set the size of the select box to 20.
<select size="3" multiple="multiple" id="selectMultiple" style="margin: 5px 0px; width:50%">
<option ng-repeat="value in scope.Names">{{value.Name}}</option>
</select>
Any help would be great!