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

Commit 36a3c81

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

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
@@ -685,8 +685,15 @@ $scope.resetWithCancel = function (e) {
685685
[#5864](https://github.com/angular/angular.js/issues/5864))
686686

687687

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:
688693

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

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

691698

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

0 commit comments

Comments
 (0)