What is the type of scroll event in angular

Viewed 1044
<div (scroll)="onScroll($event)">
onScroll(event: any) {
   const value= event.target;
  }

Here instead of type "any" ,I need to put the type of the event. Can anyone help me with this.

2 Answers

The easiest way to find out (not using the docs) would be to print the input:

 onScroll(event: any): void {
    console.log(event);
  }

enter image description here

Related