每个人的学习都不一样。你不必从前到后地这样去阅读这套文档。大多数页面代表着它们自己的内容。那些新接触Angular的人们可能希望遵循一条通用的学习路径。
-
如果你还没有设置本地开发环境,请先配置它。
-
这个Tour of Heroes将会一步一步带着你从setup到一个完整功能的例子, 展示了一个专业性的应用的本质细节:一个可以感知到的项目结构,数据绑定,master/detail(主/细节),services,依赖注入,导航,和远程数据访问。
-
阅读Architecture(架构)总览来获得一个整体的印象。
-
The Root Module(根模块)介绍了
NgModule
类, 这个类告诉了 Angular 如何编译和运行你的应用程序。 -
Displaying Data(显示数据)展示了数据绑定是如何把组件的属性值放到屏幕上的。
-
User Input(用户输入)解释了如何响应用户发起(user-initiated)的DOM事件。
-
Forms(表单)涵盖了在UI中的数据条目和有效化确认。
-
Dependency Injection(依赖注入)是一条路,从小的,单一目的的部分去建立大的,可维护的程序。
-
Template Syntax(模板语法)是一个对于Angular模板HTML的综合学习。
阅读完以上章节,你就可以在本站自由地选择阅读。
以下是原文,位于https://angular.io/docs/ts/latest/guide/learning-angular.html。
Everyone learns differently. You don't have to read the documentation straight through. Most pages stand on their own. Those new to Angular may wish to follow this popular learning path.
-
Setupfor local Angular development,if you haven't already done so.
-
Take theTour of Heroestutorial.
TheTour of Heroestakes you step-by-step fromsetupto a full-featured example that demonstrates the essential characteristics of a professional application: a sensible project structure,data binding,master/detail,services,dependency injection,navigation,and remote data access.
-
Read theArchitectureoverview for the big picture.
-
The Root Moduleintroduces the
NgModule
class that tells Angular how to compile and run your application. -
Displaying Datashows how data binding puts component property values on screen.
-
User Inputexplains how to respond to user-initiated DOM events.
-
Formscovers data entry and validation within the UI.
-
Dependency Injectionis the way to build large,maintainable applications from small,single-purpose parts.
-
Template Syntaxis a comprehensive study of Angular template HTML.
After reading the above sections,feel free to skip around among the other pages on this site.