SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(ngOptions): allow falsy values as option group identifiers

Now one can use `''`, `0`, `false` and `null` as option groups. Previously
all of these falsy values were treated as the option not being a member of
a group.

Closes #7015
Closes #7024
Closes #12888

BREAKING CHANGES
If your data contains falsy values for option groups, then these options
will now be placed into option groups. Only option groups that are `undefined`
will result in the option being put in no group. If you have data that
contains falsy values that should not be used as groups then you must
filter the values before passing them to `ngOptions` converting falsy
values to `undefined`.
P
Peter Bacon Darwin committed
b71d7c3f3c04e65b02d88b33c22dd90ae3cdfc27
Parent: fa4c7b7
Committed by Lucas Mirelmann <lgalfaso@gmail.com> on 9/20/2015, 2:40:36 PM