6月14日上海 OSC 源创会开始报名,送机械键盘和开源无码内裤
Ember是一个雄心勃勃的Web应用程序,消除了样板,并提供了一个标准的应用程序架构的JavaScript框架。
Ember.js 1.13.0 和 Ember.js 2.0 Beta 发布。Ember.js 1.13.0 至少有 43 名贡献者参与,提交了 680 个 commits。
Ember 1.13 是 1.x 系列的最新版本,也被标记为 1.x 系列的最后一个版本。也是第一个包括 Glimmer 渲染引擎的版本!此版本提升了渲染的性能,新的 Ember.js Helper API,同时还包括了一些特性废弃。
All view APIs in Ember. See deprecation guide
Ember.CoreView
, Ember.View
, Ember.CollectionView
, Ember.ContainerView
{{view 'some-helper'}}
The {{view}}
keyword for accessing properties on a view
Ember.Select
and {{view "select"}}
. See deprecation guide
Ember.LinkView
in favor of Ember.LinkComponent
. See deprecation guide
Options to the {{#each
helper that trigger a legacy and poorly performing legacy layer. These options are: itemView
, itemViewClass
, tagName
, emptyView
and emptyViewClass
.
The itemController
argument for {{#each
.
The bind-attr
helper. Using helpers and HTMLBars-style attribute binding is preferred.
Reading this.get('template')
to check for a yielded block on components. Instead, use the hasBlock
API.
Non-block param {{with
The view
and viewClass
params for {{outlet}}
Ember.reduceComputed
and Ember.arrayComputed
in favor of plain normal array manipulations. See deprecation guide
Ember 2.0 beta 是 2.x 系列的第一个版本,这就表示在 1.x 系列废弃的特性将会在 Ember.js 2.0 移除。Ember 2.0 详细计划请看 The Road to Ember 2.0 。Ember.js 2.0 beta 包括 each-in helper;get helper 等等。
{{render "some-controller"}}
{{each item itemController="some-controller"}}
- This usage can be replaced by nesting a component inside the item, and by using helpers.
Ember.ObjectController
Ember.ArrayController
The {{controller}}
keyword
needs:
on controllers
Ember.CoreView
, Ember.View
, Ember.ContainerView
and Ember.CollectionView
Ember._Metamorph
, Ember._MetamorphView
The {{view "some-view"}}
helper
The {{view}}
keyword
{{each itemView=
, {{each itemViewClass=
, {{each tagName=
, {{each emptyView=
, {{each emptyViewClass
Ember.Select
and {{view "select"}}
Ember.Checkbox
is not removed, but will become a component instead of a view
Ember.Handlebars.helper
, Ember.Handlebars.makeBoundHelper
and Ember.Handlebars.helper
Ember.Handlebars.compile
Ember 2.0 将会移除的模板 helpers:
{{bindAttr}}
{{bind-attr}}
(use HTMLBars-style attribute bindings instead)
{{bind}}
{{template}}
(use {{partial}}
instead)
{{linkTo}}
(use {{link-to}}
instead)
{{collection items}}
Non-block params versions of {{#each}}
and {{#with}}
Legacy arguments to {{#each}}
, {{outlet}}