Scroll

From Get docs
< @angular/routerAngular/docs/8/api/router/scroll


Scroll

class

An event triggered by scrolling.

class Scroll {
  constructor(routerEvent: NavigationEnd, position: [number, number], anchor: string)
  routerEvent: NavigationEnd
  position: [number, number] | null
  anchor: string | null
  toString(): string
}

Constructor

constructor(routerEvent: NavigationEnd, position: [number, number], anchor: string)

Parameters
routerEvent NavigationEnd
position [number, number]
anchor string


Properties

Property Description
routerEvent: NavigationEnd Read-Only Declared in Constructor
null Read-Only Declared in Constructor
null Read-Only Declared in Constructor

Methods

toString(): string

Parameters

There are no parameters.

Returns

string



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/router/Scroll