AngularJS + Safari: Force page to scroll to top when pages switch

后端 未结 9 1897
深忆病人
深忆病人 2021-02-07 00:20

I am having an odd, safari-only scrolling behavior using AngularJS.

Whenever the user flips between pages, the pages are being changed as if they are AJAX. I understand

9条回答
  •  鱼传尺愫
    2021-02-07 00:52

    Like @nonstopbutton said, adding autoscroll="true" to my ngView element worked for me too. I mention this here because it was a comment to an answer and it was not easy to see his reply.

    More information here: https://stackoverflow.com/a/24549173/1578861

提交回复
热议问题