写在前面的话:
公司的新项目需要用到Ember.js,版本为v1.13.0。由于网上关于Ember的资料非常少,所以只有硬着头皮看官网的Guides,为了加深印象和方便以后查阅就用自己拙劣的英语水平把这系列教程翻译为了中文,在这里把它们分享出去,希望能帮助到大家。
目前只是初稿,里面不乏有一些翻译错误,错别字之类的,随着学习的深入我会慢慢更正。大家在看的时候如果有疑惑的地方可以配合官网的英文Guides,欢迎给我留言指正,非常感激!
目录:
1 Getting Started
1.1 Core Concepts
1.2 Naming Conventions(命名约定)
2 The Object Model
2.1 Classes and Instances(类和实例)
2.2 Reopening Classes and Instances(开放类和实例)
2.3 Computed Properties
2.4 Computed Properties and Aggregate Data with @each(计算的属性和使用@each聚合数据)
2.5 Observers
2.6 Bindings
2.7 Bindings, Observers, Computed Properties:What do I use when?
2.8 Enumerables
3 Templates
3.1 Handlerbars Basics(Handlerbars基础知识)
3.2 The Application Template
3.3 Conditionals(条件语句)
3.4 Displaying A List of Items(展示一个集合)
3.5 Binding Element Attributes(绑定元素属性)
3.6 Binding Element Class Names(绑定元素类名)
3.7 Links
3.8 Actions
3.9 Input Helpers
3.10 Development Helpers
3.11 Rendering with Helpers
3.12 Wrting Helpers(编写辅助器)
4 Routing
4.1 Introduction
4.2 Defining Your Routes
4.3 Generated Objects
4.4 Specifying A Route's Model
4.5 Setting Up A Controller
4.6 Rendering A Tempalte
4.7 Redirecting
4.8 Specifying The URL Type
4.9 Query Parameters
4.10 Asynchronous Routing
4.11 Loading/Error Substates
4.12 Preventing And Retrying Transitions
5 Components
5.1 Introduction
5.2 Defining A Component
5.3 Passing Properties to A Component
5.4 Wrapping Content in A Component(在组件中封装内容)
5.5 Customizing A Compnent's Element
5.6 Handling User Interaction with Actions
5.7 Sending Actions From Components to Your Application
5.8 Composing Components(组合组件)
6 Controllers
6.1 Introduction
6.2 Representing Multipe Models
6.3 Managing Dependencies Between Controllers
7 Models
7.1 Introduction
7.2 Defining Models
7.3 Creating And Deleting Records
7.4 Pushing Records into the Store
7.5 Persisting Records
7.6 Finding Records
7.7 Working with Records
7.8 The Rest Adapter
7.9 Connection to An HTTP Server
7.10 Handling Metadata(处理元数据)
7.11 Customizing Adapters
7.12 Frequently Asked Questions