How does the page get back to the top when angular5 routes switch?

when using routing to switch pages, such as A page to B page, if the A page scrolls down, the B page is also scrolling distance when it is routed to B, how to get back to the top of the page each time you switch

Feb.26,2021

listen for this event

Router.events.NavigationEnd
Menu