AngularJS 1.1.5 - automatically adding hash tag to URLs

后端 未结 3 1543
暗喜
暗喜 2020-12-29 07:16

Does anyone know why version 1.1.5 automatically adds a hashtag to your urls, and how to turn this off? IMO this is ugly looking. It happens whenever you have a url that doe

3条回答
  •  伪装坚强ぢ
    2020-12-29 07:49

    In $routeProvider set HTML5 mode as true as following

    $locationProvider.html5Mode(true);
    

    And in head section of your page add this following line

    
    

提交回复
热议问题