AngularJS 2.1.0官方脚手架&样式?
AngularJS 2.1.0 official scaffold & style?
Google 最了解……但他们前后矛盾!
official ng
CLI generates a scaffold one way, whereas the official tutorial选择了不同的方式。
我说的不只是目录布局,typings.json
vs package.json
中的类型选择也特别令人担忧。
我打算使用什么风格?
Angular 2 的教程基本上只是展示了最快速和最简单的入门方法和 运行 框架。它省略了可能会吓跑生态系统潜在新人的事情,这意味着简单。
另一方面,angular-cli
积极采用最佳实践和 Webpack 2 Beta 等最新技术,并尝试为开发人员提供一款软件来快速构建和开发可扩展的生产应用程序,而无需担心构建工具和配置.
快速入门
This is not the perfect arrangement for your application. It is not designed for production. It exists primarily to get you started quickly with learning and prototyping in Angular
angular-cli
The Angular2 CLI makes it easy to create an application that already works, right out of the box. It already follows our best practices!
Google 最了解……但他们前后矛盾!
official ng
CLI generates a scaffold one way, whereas the official tutorial选择了不同的方式。
我说的不只是目录布局,typings.json
vs package.json
中的类型选择也特别令人担忧。
我打算使用什么风格?
Angular 2 的教程基本上只是展示了最快速和最简单的入门方法和 运行 框架。它省略了可能会吓跑生态系统潜在新人的事情,这意味着简单。
另一方面,angular-cli
积极采用最佳实践和 Webpack 2 Beta 等最新技术,并尝试为开发人员提供一款软件来快速构建和开发可扩展的生产应用程序,而无需担心构建工具和配置.
快速入门
This is not the perfect arrangement for your application. It is not designed for production. It exists primarily to get you started quickly with learning and prototyping in Angular
angular-cli
The Angular2 CLI makes it easy to create an application that already works, right out of the box. It already follows our best practices!