I use ui-router, now I click the browser’s back button to go back to the previous page, how do I do it
習慣沉默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
高洛峰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.