V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
nuc093
V2EX  ›  Node.js

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

  •  
  •   nuc093 · 2015-09-27 15:19:56 +08:00 · 3475 次点击
    这是一个创建于 3127 天前的主题,其中的信息可能已经有所发展或是发生改变。

    为了更好的理解 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.

    4 条回复    2015-09-28 09:40:15 +08:00
    fjs312
        1
    fjs312  
       2015-09-28 07:49:04 +08:00
    安装步骤来:
    1 npm install
    2 grunt build
    3 grunt watch
    就可以了
    fjs312
        2
    fjs312  
       2015-09-28 09:33:11 +08:00
    https://github.com/angular-ui/ui-router/issues/1815 抱歉怕你不好理解,请看官方文档,(@nateabele)作者自己说没有加入 serve 命令!直接 grunt connect:sample 就行了
    nuc093
        3
    nuc093  
    OP
       2015-09-28 09:40:04 +08:00
    @nuc093 多谢
    nuc093
        4
    nuc093  
    OP
       2015-09-28 09:40:15 +08:00
    @fjs312 多谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2961 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 03:13 · PVG 11:13 · LAX 20:13 · JFK 23:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.