1

我有一个可以继续使用的 Angular 应用程序,mysite.com/angularapp并且不需要路由提供程序。当我加载页面时,URL 更改为mysite.com/angularapp#/angularapp. 我希望 URL 不包含哈希。我可以手动清除它,window.location.hash但我希望它被禁用,这样 URL 就不会从一开始就随着散列 URL 闪烁。我也不能使用html5modesource),因为仍然有许多链接绑定到服务器端请求(所以我不能简单地重新路由我的整个应用程序以作为单页应用程序工作)。我该怎么做呢?

4

1 回答 1

2

The answer is that this is a known bug in Angular 1.1.5 (which I was using). Downgrading to 1.1.4 will remove this problem.

于 2013-07-29T23:02:01.510 回答