W3cubDocs

/Angular

Scroll

An event triggered by scrolling.

API

class Scroll {
  constructor(routerEvent: NavigationEnd | NavigationSkipped, position: [number, number] | null, anchor: string | null, scrollBehavior?: "manual" | "after-transition" | undefined): Scroll;
  readonly type: EventType.Scroll;
}

constructor

Scroll
@paramrouterEventNavigationEnd | NavigationSkipped
@paramposition[number, number] | null
@paramanchorstring | null
@paramscrollBehavior"manual" | "after-transition" | undefined
@returnsScroll

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/Scroll