search

Home  >  Q&A  >  body text

angular.js - AngularJS is configured with $locationProvider.html5Mode to return to the previous page and output JSON directly

Click the link from the list page to view, then view and return to the previous page onclick="history.go(-1)"

Directly output the JSON of the list page

If there is no problem without using html url, how to solve it? ? ? ?

PHPzPHPz2832 days ago657

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-15 17:00:14

    Use angular ui router and use $state.go

    reply
    0
  • 黄舟

    黄舟2017-05-15 17:00:14

    It may be a problem with your routing configuration. Post it and take a look. It is recommended not to use angular routing. It is more convenient to use UI-router.

    reply
    0
  • Cancelreply