WARNING

This project is no longer maintained. For Angular 2 starter take a look at the angular2-seed, that this project is based on.

Introduction

Sample application based upon mgechev/ angular2-seed.

Join the chat at https://gitter.im/mgechev/angular2-seed Dependency Status devDependency Status

Note: Angular 2.0 is not production ready yet! This project is perfect for playing around with the latest versions but do not start new projects with it since a lot of new changes are going to be introduced until the framework is officially released.

Features

  • Component styling
  • Custom Directive
  • Router module (implementing child routes*)
  • Http module
  • Form module (using template driven form approach)

How to start

Note that this seed project requires node v0.12.x or higher and npm 3.x.x.

npm install
# dev
npm run serve.dev

Does not rely on any global dependencies.

Directory Structure

.
├── app
│   ├── components
│   │   ├── about
│   │   │   ├── about.html
│   │   │   ├── about.ts
│   │   │   └── about_spec.ts
│   │   └── home
│   │       ├── home.css
│   │       ├── home.html
│   │       ├── home.ts
│   │       └── home_spec.ts
│   ├── services
│   │   ├── name_list.ts
│   │   └── name_list_spec.ts
│   ├── typings
│   ├── app.css
│   ├── app.html
│   ├── app.ts
│   ├── index.html
│   └── init.ts
├── dist
│   ├── dev
│   └── prod
├── tools
│   ├── tasks
│   ├── utils.js
│   └── workflow.config.js
├── tsd_typings
├── gulpfile.js
├── karma.conf.js
├── package.json
├── test-main.js
├── tsconfig.json
└── tsd.json

Configuration

Default application server configuration

var PORT             = 5555;
var LIVE_RELOAD_PORT = 4002;
var APP_BASE         = '/';

Configure at runtime

npm run serve.dev -- --port 8080 --reload-port 4000 --base /my-app/

Now to extend?

If you want to use your custom libraries:

npm install my-library --save
vim gulpfile.js

Add reference to the installed library in PATH.src.lib into ./tools/workflow.config.js.

Running test

# In a single bash window
npm run test

# Debug - In two bash windows
npm run karma      # 1st window
npm run test.dev   # 2nd window

Contributors

mgechev ludohenin NathanWalker tarlepp aboeglin jerryorta-dev
mgechev ludohenin NathanWalker tarlepp aboeglin jerryorta-dev
TuiKiken ryzy ultrasonicsoft mjwwit natarajanmca11 philipooo
TuiKiken ryzy ultrasonicsoft mjwwit natarajanmca11 philipooo
redian robertpenner jgolla dstockhammer
redian robertpenner jgolla dstockhammer

Change Log

You can follow the Angular 2 change log here.

License

MIT



WARNING

此项目不再维护。对于Angular 2启动器,请查看此项目基于的 angular2-seed

Introduction

基于 mgechev / angular2的示例应用程序-seed

依赖状态 devDependency状态data-canonical-src

注意: Angular 2.0尚未生产就绪!这个项目非常适合玩最新版本,但不要开始新的项目,因为在框架正式发布之前,将会引入许多新的更改。

Features

  • 组件样式
  • 自订指令
  • 路由器模块(实现子路由*)
  • Http模块
  • 表单模块(使用模板驱动表单方式)

How to start

注意,此种子项目需要节点v0.12.x或更高版本以及npm 3.x.x。

npm install
# dev
npm run serve.dev

不依赖于任何全局依赖关系。

Directory Structure

.
├── app
│   ├── components
│   │   ├── about
│   │   │   ├── about.html
│   │   │   ├── about.ts
│   │   │   └── about_spec.ts
│   │   └── home
│   │       ├── home.css
│   │       ├── home.html
│   │       ├── home.ts
│   │       └── home_spec.ts
│   ├── services
│   │   ├── name_list.ts
│   │   └── name_list_spec.ts
│   ├── typings
│   ├── app.css
│   ├── app.html
│   ├── app.ts
│   ├── index.html
│   └── init.ts
├── dist
│   ├── dev
│   └── prod
├── tools
│   ├── tasks
│   ├── utils.js
│   └── workflow.config.js
├── tsd_typings
├── gulpfile.js
├── karma.conf.js
├── package.json
├── test-main.js
├── tsconfig.json
└── tsd.json

Configuration

默认应用程序服务器配置

var PORT             = 5555;
var LIVE_RELOAD_PORT = 4002;
var APP_BASE         = '/';

在运行时配置

npm run serve.dev – –port 8080 –reload-port 4000 –base /my-app/

Now to extend?

如果您要使用自定义库:

npm install my-library –save
vim gulpfile.js

PATH.src.lib 中已安装的库的引用添加到 ./ tools / workflow.config.js 中。

Running test

# In a single bash window
npm run test

# Debug - In two bash windows npm run karma # 1st window npm run test.dev # 2nd window

Contributors

mgechev ludohenin NathanWalker tarlepp aboeglin jerryorta-dev
mgechev ludohenin NathanWalker tarlepp aboeglin jerryorta-dev
TuiKiken ryzy ultrasonicsoft mjwwit natarajanmca11 philipooo
TuiKiken ryzy ultrasonicsoft mjwwit natarajanmca11 philipooo
redian robertpenner jgolla dstockhammer
redian robertpenner jgolla dstockhammer

Change Log

您可以按照 Angular 2更改日志此处

License

麻省理工学院




相关问题推荐