search

Home  >  Q&A  >  body text

angular.js - When angular uses $state.go() to jump, the page will not return to the top

As mentioned, I have used the reload attribute, $state.go('url',{},{reload:true}; but that only refreshes the data, and the page does not jump to the beginning

巴扎黑巴扎黑2864 days ago506

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-15 17:08:47

    You need to use this $anchorScroll

    Official website link

    reply
    0
  • Cancelreply