angularjs 使用ui.router 去掉url中的#号

angularjs 使用ui.router  去掉url中的#号。只要在index.html中添加
<base href="/工程名/" />

在路由中config下注入:locationProvider

然后添加  $locationProvider.html5Mode(true);就可以了

原文地址:https://www.cnblogs.com/bertha-zm/p/7489322.html