Skip to content

Commit b788a09

Browse files
authored
docs(changelog): mention callback removal from ScrollDispatcher (#8426)
1 parent 05084e9 commit b788a09

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
behaviors are stable and mature enough to exit beta. Please continue to file issues that
88
help us eliminate more bugs from the forthcoming 5.0.0 release. Moving forward, the _major_
99
version number of Angular Material and CDK will update alongside Angular itself.
10-
* A [moment.js](http://momentjs.com/) implementation of the `DateAdapter` for `MatDatepicker` is now available as `@angular/material-moment-adapter`
10+
* A [moment.js](http://momentjs.com/) implementation of the `DateAdapter` for `MatDatepicker` is
11+
now available as `@angular/material-moment-adapter`
1112
* Based on Angular 5.0
1213
* More consistent naming conventions across the board
1314
* 60+ bug fixes
@@ -42,6 +43,15 @@
4243
- The `ScrollDispatcher.scrollableReferences` property has been renamed to `scrollContainers`.
4344
- The `ScrollDispatcher.scrollableContainsElement` method has been removed.
4445
- The `Scrollable` class has been renamed to `CdkScrollable` for consistency.
46+
- Any uses of the `ScrollDispatcher.scrolled` method have to be refactored to subscribe to the
47+
returned Observable, instead of passing in the `callback`. Example
48+
```ts
49+
// Before
50+
scrollDispatcher.scrolled(50, () => ...);
51+
52+
// After
53+
scrollDispatcher.scrolled(50).subscribe(() => ...);
54+
```
4555
* **unique-selection:** move UniqueSelectionDispatcher to `@angular/cdk/collections`
4656
(`UniqueSelectionDispatcher`, `UniqueSelectionDispatcherListener`, and
4757
`UNIQUE_SELECTION_DISPATCHER_PROVIDER`)

0 commit comments

Comments
 (0)