I want to view a file with in the html page that exists on the server. I'm using angular 8.0.0 version. I have tried ngx-file-viewer. But it got an error called "Property 'wheelDelta' does not exist on type 'WheelEvent' ".
I have tried to solve that using event.deltaY instead of using event.wheelData which marked for the solution within the "How to fix " Property 'wheelDelta' does not exist on type 'WheelEvent' " while upgrading to angular 7,rxjs6?".
But after that it gets an error called " Cannot find name 'module'. Do you need to install type definitions for node? Try npm i @types/node
and then add node
to the types field in your tsconfig.".
can anyone tell me how to solve that?
After edit the code
@HostListener('wheel', ['$event'])
onWheel(event:MouseWheelEvent) {
this.changeZoom(event.deltaY/2400);
return false;
}