search

Home  >  Q&A  >  body text

angular.js - I use ui-router. Now I click the browser's back button and want to go back to the previous page. How do I do this?

I use ui-router, now I click the browser’s back button to go back to the previous page, how do I do it

淡淡烟草味淡淡烟草味2788 days ago779

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-15 17:14:21

    history back?
    Return to the previous page in angularJS

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-15 17:14:21

    Thanks for the invitation

    You need to describe the problem you encountered in detail
    Under normal circumstances, clicking the browser's back button will return to the previous page

    reply
    0
  • 高洛峰

    高洛峰2017-05-15 17:14:21

    Provides this function itself

    When you switch navigation, the url has changed. If you click the back button, you will return to the previous url and naturally return to the previous page. The controller has been destroyed when switching, and will be reloaded and requested again when switching back.

    reply
    0
  • Cancelreply