nuc093
V2EX  ›  Node.js

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

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