search

Home  >  Q&A  >  body text

angular.js - ui-router returns the previous route

ui-router returns the previous route
window.history.go(-1); or window.history.back(); is not easy to use and returns the wrong result

给我你的怀抱给我你的怀抱2844 days ago974

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-15 17:14:29

    Describe in detail why it is not easy to use, what are the bugs and what problems have occurred?
    Normal ui-route returns to the previous page. There is no problem.
    history.go(-1) This method is equivalent to clicking on the browser to return to the previous page. Page button

    reply
    0
  • Cancelreply