/#!/ Nodejs MEAN Stack (Mean.io) 干净安装中的 url 段



我已经克隆了,从 https://github.com/linnovate/mean 安装了新版本的MEAN堆栈,然后带着咕噜声运行。

我注意到我的根页面在末尾附加了一个/#!/ url 段,我的所有页面看起来像这样:

http://localhost:3000/#!/
http://localhost:3000/#!/articles/
...

关于如何摆脱该/#!/ URL段的任何提示?我无法判断这是否是节点/角度/快速设置。

这是

在Angular中.js并且在github上的文件中注释了为什么它在那里

https://github.com/linnovate/mean/blob/master/public/js/init.js

'use strict';
 angular.element(document).ready(function() {    
//Fixing facebook bug with redirect   
   if (window.location.hash === '#_=_') window.location.hash = '#!';    //Then init the app        angular.bootstrap(document, ['mean']);
 });

虽然我不声称理解为什么没有它会导致问题,而且我不确定为什么它出现在每一页上?

最新更新