File tree 1 file changed +7
-0
lines changed 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -685,8 +685,15 @@ $scope.resetWithCancel = function (e) {
685
685
[#5864](https://github.com/angular/angular.js/issues/5864))
686
686
687
687
688
+ - {@link input[checkbox] `input[checkbox]`} now supports constant expressions in `ngTrueValue` and
689
+ `ngFalseValue`, making it now possible to e.g. use boolean and integer values. Previously, these attributes would
690
+ always be treated as strings, whereas they are now parsed as expressions, and will throw if an expression
691
+ is non-constant. To convert non-constant strings into constant expressions, simply wrap them in an
692
+ extra pair of quotes, like so:
688
693
694
+ `<input type="checkbox" ng-model="..." ng-true-value="'truthyValue'">`
689
695
696
+ See [c90cefe1614](https://github.com/angular/angular.js/commit/c90cefe16142d973a123e945fc9058e8a874c357)
690
697
691
698
692
699
## Scopes and Digests (`$scope`)
You can’t perform that action at this time.
0 commit comments