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?
淡淡烟草味
淡淡烟草味 2017-05-15 17:12:21
0
3
754

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

淡淡烟草味
淡淡烟草味

reply all(3)
仅有的幸福

history back?
Return to the previous page in angularJS

習慣沉默

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

小葫芦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template