-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63eae6e
commit c3cd645
Showing
8 changed files
with
290 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The `scrolling` package provides helpers for directives that react to scroll events. | ||
|
||
### cdkScrollable and ScrollDispatcher | ||
The `cdkScrollable` directive and the `ScrollDispatcher` service together allow components to | ||
react to scrolling in any of its ancestor scrolling containers. | ||
|
||
The `cdkScrollable` directive should be applied to any element that acts as a scrolling container. | ||
This marks the element as a `Scrollable` and registers it with the `ScrollDispatcher`. The | ||
dispatcher, then, allows components to share both event listeners and knowledge of all of the | ||
scrollable containers in the application. | ||
|
||
### ViewportRuler | ||
The `ViewportRuler` is a service that can be injected and used to measure the bounds of the browser | ||
viewport. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
export * from './scroll-dispatcher'; | ||
export * from './scrollable'; | ||
export * from './viewport-ruler'; | ||
export * from './scrolling-module'; | ||
export * from './viewport-ruler'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.