nuc093
V2EX  ›  Node.js

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

  •  
  •   nuc093 · Sep 27, 2015 · 4637 views
    This topic created in 4054 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   ·   5034 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:48 · PVG 14:48 · LAX 22:48 · JFK 01:48
    ♥ Do have faith in what you're doing.