angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

would be nice for <select> to support ng-size or size="{{expression}}" so we can set the size to the actual size for dynamic multiple selects

Open jstrachan opened this issue 14 years ago • 21 comments

I've tried 1.0.2 and it seems any expression of the form <select size="{{something}}" which just gets set to size="0". I ended up having to hack around this with jquery which made me feel dirty ;) so wondered if there was a way of just allowing a size expression to be specified (or even defaulting it as the ng-options knows the size).

e.g. something like this...

      <select id="attributes" ng-size="whatnot.length" multiple ng-multiple="true" ng-model="selectedThings" ng-options="foo for foo in whatnot"></select>

jstrachan avatar Nov 28 '12 10:11 jstrachan

+1

JonahJ avatar Jun 17 '16 17:06 JonahJ