【发布时间】:2016-12-14 10:49:45
【问题描述】:
我已经使用 yeoman 设置了一个新的 Angular 项目。 Angular 版本是 1.6.0。项目设置成功,但我遇到了路由问题
任务运行器 - Grunt
当我在本地运行项目时,我的本地页面将加载 URL
当点击关于链接浏览器被路由到
http://localhost:9000/#!/%23%2Fabout
期望:http://localhost:9000/#/about
当我点击主页链接浏览器被路由到
http://localhost:9000/#!/%23%2F
可能是什么问题?我在使用 AngularJS 1.5.8 的其他系统中没有此类问题。
【问题讨论】:
标签: angularjs yeoman angular-routing yeoman-generator-angular angularjs-1.6