Skip to content

Commit f9990fe

Browse files
jelbournmmalerba
authored andcommitted
docs(cdk/scrolling): note that ViewportRuler.change emits outside the (#22801)
zone Fixes #8279 (cherry picked from commit 298fed2)
1 parent 55c2545 commit f9990fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cdk/scrolling/viewport-ruler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export class ViewportRuler implements OnDestroy {
142142

143143
/**
144144
* Returns a stream that emits whenever the size of the viewport changes.
145+
* This stream emits outside of the Angular zone.
145146
* @param throttleTime Time in milliseconds to throttle the stream.
146147
*/
147148
change(throttleTime: number = DEFAULT_RESIZE_TIME): Observable<Event> {

0 commit comments

Comments
 (0)