Node.js /#!/ Nodejs平均堆栈(MEAN.io)中的url段干净安装

Node.js /#!/ Nodejs平均堆栈(MEAN.io)中的url段干净安装,node.js,angularjs,mean-stack,Node.js,Angularjs,Mean Stack,我已经从中克隆并安装了MEAN stack的新版本,然后使用grunt运行 我注意到我的根页面添加了一个/#/url段结束,我的所有页面看起来像: http://localhost:3000/#!/ http://localhost:3000/#!/articles/ ... 有没有关于如何摆脱这个/#的提示/url段?我不知道这是否是一个Node/Angular/Express设置。这是在Angular.js中,它在github上的文件中被注释为为什么会出现 虽然我不明白为什么没有它会引起

我已经从中克隆并安装了MEAN stack的新版本,然后使用grunt运行

我注意到我的根页面添加了一个
/#/url段结束,我的所有页面看起来像:

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

有没有关于如何摆脱这个
/#的提示/url段?我不知道这是否是一个Node/Angular/Express设置。

这是在Angular.js中,它在github上的文件中被注释为为什么会出现

虽然我不明白为什么没有它会引起问题,我也不知道为什么它会出现在每一页上

'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']);
 });