Skip to content

Commit 7235329

Browse files
committed
docs(ngModel): update breaking change from 1.3.0-beta.11 to 1.3.0-beta.12
Closes angular#8357
1 parent 06fa286 commit 7235329

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

CHANGELOG.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ $rootScope.$digest();
241241

242242

243243
- **$compile/ngBind:** due to [3660fd09](https://github.com/angular/angular.js/commit/3660fd0912d3ccf6def8c9f02d8d4c0621c8d91f),
244-
244+
245245
The value of `$binding` data property on an element is always an array now
246246
and the expressions do not include the curly braces `{{ ... }}`.
247247

@@ -283,7 +283,7 @@ Closes #8811
283283

284284
- **input:**
285285
- due to [29f0b568](https://github.com/angular/angular.js/commit/29f0b568debab7810752969d363d337099e96cdc),
286-
286+
287287

288288
According to the HTML5 spec `input[time]` should create dates
289289
based on the year 1970 (used to be based on the year 1900).
@@ -302,7 +302,7 @@ error is gone. The error will be stored on `ngModel.$error`.
302302

303303

304304
- **ngEventDirs:** due to [719c747c](https://github.com/angular/angular.js/commit/719c747cd892ee933e7e414a7dc97e657b88317d),
305-
305+
306306
The `blur` and `focus` event fire synchronously, also during DOM operations
307307
that remove elements. This lead to errors as the Angular model was not
308308
in a consistent state. See this [fiddle](http://jsfiddle.net/fq1dq5yb/) for a demo.
@@ -1645,6 +1645,15 @@ this limitation, use a regular expression object as the value for the expression
16451645

16461646
//after
16471647
$scope.exp = /abc/i;
1648+
1649+
- **NgModel:** due to [f3cb2741161353f387d02725637ce4ba062a9bc0](https://github.com/angular/angular.js/commit/f3cb2741161353f387d02725637ce4ba062a9bc0),
1650+
1651+
#### since 1.3.0-beta.11
1652+
1653+
If the user enters a value and a parser or validator fails, the model will be set to `undefined`.
1654+
This is the same behavior as in 1.2.x, but different to 1.3.0-beta.11, as there only invalid parsers
1655+
would set the model to `undefined`, but invalid validators would not change the model.
1656+
16481657
- **Scope:** due to [8c6a8171](https://github.com/angular/angular.js/commit/8c6a8171f9bdaa5cdabc0cc3f7d3ce10af7b434d),
16491658
Scope#$id is now of time number rather than string. Since the
16501659
id is primarily being used for debugging purposes this change should not affect

0 commit comments

Comments
 (0)