<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.
CodePudding user response:
It would be Event as a type.
onScroll(event: Event) {
const value= event.target;
}
Fired at the Document or element when the viewport or element is scrolled, respectively.

