Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ng:options - "not selected" option tag not compiled #562

Closed
witoldsz opened this issue Sep 18, 2011 · 0 comments
Closed

ng:options - "not selected" option tag not compiled #562

witoldsz opened this issue Sep 18, 2011 · 0 comments

Comments

@witoldsz
Copy link

On 9 September 2011 21:09, David Loehr dloehr@servi...m wrote:

In 0.9.17, I could do:

<select name="something" ng:options="address.toString() for address in addresses">
    <option value="">{{emptyLabel}}</option>
</select>

and the {{emptyLabel}} was evaluated by angular, but in 0.9.18 and
0.9.19, angular leaves the literal "{{emptyLabel}}" there.

Compare: http://jsfiddle.net/THsAj/ (0.9.17), http://jsfiddle.net/bS59A/
(0.9.18), http://jsfiddle.net/bS59A/1/ (0.9.19)

Was there a reason for this change?

On 12 September 2011 19:47, Misko Hevery misko@getang...m wrote:

yes, see: http://docs.angularjs.org/#!/api/angular.directive.ng:options
The issue was performance, but I con see that there may be a need for this.
So pleases file a bug.

TEHEK added a commit to TEHEK/angular.js that referenced this issue Oct 13, 2011
TEHEK added a commit to TEHEK/angular.js that referenced this issue Oct 14, 2011
TEHEK added a commit to TEHEK/angular.js that referenced this issue Oct 18, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants