路由(route)
路由定义(Defining Your Routes)
简单路由(Basic Routes)
嵌套路由(Nested Routes)
入口路由(The application route)
首页路由(Index Routes)
动态段(Dynamic Segments)
通配符(Wildcard )
指定路由的模型(Specifying a Route's Model)
普通方式
动态模式(Dynamic Models)
多模型模式(Multiple Models)
渲染模板(Rendering a Template)
重定向(Redirectting)
获取model数据前重定向
获取model数据后重定向
包含动态段路由跳转
终止、回转路由跳转
在回调中终止路由跳转
路由回跳
路由加载/错误子状态(loading/error substates)
加载子状态(loading substates)
加载事件(loading event)
错误子状态(error substates)
错误事件(error event)
查询参数(Query Parameters)
指定查询参数
link-to助手指定查询参数
指定tansitionTo方法的查询参数
Opting into a full transition
Update URL with replaceState instead
查询参数的键与不同参数名映射
设置查询参数的默认值
定死查询参数
异步路由(Asynchronous routeing)
模板(template)
模板简介(Handerbars Baseics)
显示属性值
在模板中使用条件语句(Conditionals)
显示数据集(Displaying a List of Items)
访问数组的下标
空数组处理(Empty List)
数据嵌套遍历(Displaying the keys in an object)
空数组处理(Emptry list)
html元素属性绑定(Binding Element Attributes)
链接(Links)
常用{{link-to}}助手
包含多个动态段的{{link-to}}助手
点击查看更加详细的使用教程
行为(Actions)
{{action}}常用方式
{{action}}参数(Action Parameters)
指定{{action}}事件类型(Specifying The type of Event)
允许浏览器默认行为(Allow Default Browser Action)
指定action触发事件的辅助按键
获取触发的事件本身、输入框的值
Attaching Actions to Non-Clickable Elements
输入助手(Input Helper)
开发助手(Development Helper)
格式化、转义助手(Writing helper)
数据格式化(Format)
助手命名规则(Helper Names)
助手参数(Helper Parameters)
基于类助手(Class-based Helpers)
HMTL转义(Escaping HTML Content)
组件(component)
组件定义(Defining a Component)
组件类定义
动态渲染组件
组件生命周期(The Component lifecycle)
Order of Lifecycle Hooks Called
Resetting Presentation State on Attribute Change with didUpdateAttrs
Formatting Component Attributes with didReceiveAttrs
Integrating with Third-Party Libraries with didInsertElement
Making Update to the Rendered DOM with didRender
Detaching and Tearing Down Component Elements with willDestroayElement
组件之间参数传递(Passing Properties to a Component)
组件包裹html(Wrapping Content in a Component)
自定义组件生成的元素(Customizing a Component's Element)
自定义渲染元素(Customizing the Element)
自定义渲染元素的样式(Customizing Class Names)
自定义标签的属性(Customizing Attributes)
组件事件处理(Handling Events)
Triggering Changes with Actions
核心预览
路由与模板(route and template)
模型回调(model hook)
Ember Date
组件(Component)
模型(model)
模型简介(Introduction)
模型定义(Defing model)
查询记录(Finding Record)
新建、更新和删除记录(creating,updating and deleting)
模型关联关系(Relationships)
一对一、一对多、多对多
显式反转
自反关系
模型关系处理
创建关联模型
更新模型的关联关系
删除模型的关联关系
关系也是promise
保存数据到store(Pushing Records into the Store)
元数据(Handling Metadata)
自定义适配器(Customizing Adapters)
URL转换(URL Conventions)
自定义URL模型复数形式(Pluralization Customization)
URL公共前缀定义(Endpoint Path Customization)
自定义域名(Host Customization)
自定义请求路径中模型的命名方式(Path Customization)
自定义请求头信息(Headers customization)
自定义序列化器(Customizing Serializers)
JSON API规范
Sideloaded Data
自定义序列化器(Customization Serializer)
ID属性
属性命名规则(Attribute Names)
模型关系处理(Relationships)
自定义转换器(creating Custom Transformations)
JSONSerializer序列化器
EmbeddedRecordMixin
EmbeddedRecordsMixin Defaults
定义完全全新的序列化器(Authoring Serializers)