V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
nuc093
V2EX  ›  Node.js

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

  •  
  •   nuc093 · Sep 27, 2015 · 4221 views
    This topic created in 3870 days ago, the information mentioned may be changed or developed.

    为了更好的理解 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 replies    2015-09-28 09:40:15 +08:00
    fjs312
        1
    fjs312  
       Sep 28, 2015
    安装步骤来:
    1 npm install
    2 grunt build
    3 grunt watch
    就可以了
    fjs312
        2
    fjs312  
       Sep 28, 2015
    https://github.com/angular-ui/ui-router/issues/1815 抱歉怕你不好理解,请看官方文档,(@nateabele)作者自己说没有加入 serve 命令!直接 grunt connect:sample 就行了
    nuc093
        3
    nuc093  
    OP
       Sep 28, 2015
    @nuc093 多谢
    nuc093
        4
    nuc093  
    OP
       Sep 28, 2015
    @fjs312 多谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1541 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:17 · PVG 00:17 · LAX 09:17 · JFK 12:17
    ♥ Do have faith in what you're doing.