如何在本地运行 ui-router-sample

2015-09-27 15:19:56 +08:00
 nuc093

为了更好的理解 ui-router 需要在本地从头在敲一遍,如何在本地运行?

http://angular-ui.github.io/ui-router/sample/#/

➜ ui-router git:(master) pwd
/Users/qk/github/ui-router
➜ ui-router git:(master) grunt serve
Warning: Task "serve" not found. Use --force to continue.

Aborted due to warnings.

3485 次点击
所在节点    Node.js
4 条回复
fjs312
2015-09-28 07:49:04 +08:00
安装步骤来:
1 npm install
2 grunt build
3 grunt watch
就可以了
fjs312
2015-09-28 09:33:11 +08:00
https://github.com/angular-ui/ui-router/issues/1815 抱歉怕你不好理解,请看官方文档,(@nateabele)作者自己说没有加入 serve 命令!直接 grunt connect:sample 就行了
nuc093
2015-09-28 09:40:04 +08:00
@nuc093 多谢
nuc093
2015-09-28 09:40:15 +08:00
@fjs312 多谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/224031

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX