Angular 6 - Keep scroll position when the route changes

后端 未结 4 2062
萌比男神i
萌比男神i 2021-01-04 12:52

Previous Behavior:

Changing the route or navigation path would not affect the scroll position when navigating to another route. I.e the contents can

4条回答
  •  走了就别回头了
    2021-01-04 13:19

    if it doesnt work with ScrollPositionRestoration:'enabled' configuration use the [scrollTop] property binding for the container and assign the value

提交回复
热议问题