search

Home  >  Q&A  >  body text

angular.js - angular-ui-router removes # from url

When using ng-route, you can use <base href="/"> to remove "#", $locationProvider.html5Mode(true); then corresponding to ui-route, you need to remove "#", the How to do it?

为情所困为情所困2779 days ago607

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-15 16:59:26

    Why not write the status directly without using href 而用 ui-sref instead of the path?

    reply
    0
  • Cancelreply