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

Commit 8709539

Browse files
committed
docs(guide/migration): add info for 1.3 checkbox breaking change
Introduced in commit c90cefe Closes #13464
1 parent 2995b54 commit 8709539

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/content/guide/migration.ngdoc

+7
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,15 @@ $scope.resetWithCancel = function (e) {
686686
[#5864](https://github.com/angular/angular.js/issues/5864))
687687

688688

689+
- {@link input[checkbox] `input[checkbox]`} now supports constant expressions in `ngTrueValue` and
690+
`ngFalseValue`, making it now possible to e.g. use boolean and integer values. Previously, these attributes would
691+
always be treated as strings, whereas they are now parsed as expressions, and will throw if an expression
692+
is non-constant. To convert non-constant strings into constant expressions, simply wrap them in an
693+
extra pair of quotes, like so:
689694

695+
`<input type="checkbox" ng-model="..." ng-true-value="'truthyValue'">`
690696

697+
See [c90cefe1614](https://github.com/angular/angular.js/commit/c90cefe16142d973a123e945fc9058e8a874c357)
691698

692699

693700
## Scopes and Digests (`$scope`)

0 commit comments

Comments
 (0)