Angular 8 scroll to a fragment, doesn't bring the fragment to the top of the page
问题 I have a link, by clicking on the link, I want to scroll to a fragment which is at the bottom of the page. When I click on the link, the fragment is working, but it doesn't bring it to the top of the page. I tried having the using div and section with an id to create the fragment. But, it doesn't bring the div or section to the top of the page. The code in my app routing module is: imports: [ RouterModule.forRoot(routes, { //useHash: true, scrollPositionRestoration: 'enabled',