How does angular get the coordinates of the mouse?

how can I get the mouse coordinates? I can now see that pageX,pageY, can be run through window.event, but an error is reported by a red underscore in the editor, so I want to ask how to get the mouse coordinates correctly.
the error is that there is no pageX attribute in the event type.

Feb.10,2022

A simple way to remove the error report:
(window as any). Event
I think it would be better to write an instruction to handle the mouse movement event in the instruction

</component>

the first parameter of this method is the event object, which you should be able to see when you output it.

Menu