This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1125,7 +1125,11 @@ and "$dependentProvider" would have actually accomplished something and changed
1125
1125
app. This is no longer possible within a single module.
1126
1126
1127
1127
1128
+ ### Filters (`orderBy`)
1128
1129
1130
+ - due to [a097aa95](https://github.com/angular/angular.js/commit/a097aa95b7c78beab6d1b7d521c25f7d9d7843d9),
1131
+ `orderBy` now treats `null` values (which in JavaScript have type `object`) as having a string
1132
+ represenation of `'null'`.
1129
1133
1130
1134
1131
1135
### Animation (`ngAnimate`)
@@ -1229,7 +1233,6 @@ or simply use:
1229
1233
1230
1234
1231
1235
1232
-
1233
1236
## Migrating from 1.0 to 1.2
1234
1237
1235
1238
Original file line number Diff line number Diff line change 86
86
*
87
87
* **Note:** If you notice numbers not being sorted as expected, make sure they are actually being
88
88
* saved as numbers and not strings.
89
+ * **Note:** For the purpose of sorting, `null` values are treated as the string `'null'` (i.e.
90
+ * `type: 'string'`, `value: 'null'`). This may cause unexpected sort order relative to
91
+ * other values.
89
92
*
90
93
* @param {Array|ArrayLike } collection - The collection (array or array-like object) to sort.
91
94
* @param {(Function|string|Array.<Function|string>)= } expression - A predicate (or list of
You can’t perform that action at this time.
0 commit comments