项目作者: crossgit

项目描述 :
ng2的使用例子(about @angular/cli)
高级语言: TypeScript
项目地址: git://github.com/crossgit/JianghuGarden.git
创建时间: 2017-02-05T12:07:45Z
项目社区:https://github.com/crossgit/JianghuGarden

开源协议:

下载


JianghuGarden

项目环境

  1. @angular/cli 1.0.0-beta.31
  2. @angular/material2 beta.1

下载后运行 //与服务端配合,加了代理服务端地址 http://localhost:3000

  1. npm install
  2. npm start
  3. http://localhost:4200

项目不在游戏方面,只是一个ng2的demo.

关于引入lodash

  1. npm i --save @type/lodash
  2. angular-cli.json下的scirpts加入lodash路径 "../node_modules/lodash/lodash.js"
  3. 在使用lodash的页面引用: import * as _ from lodash