Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Road to Ember 2.0

Road to Ember 2.0

Slides from my talk at Ember.BP meetup 2015 February

http://www.meetup.com/ember-bp/events/219828350/

Gabor Babicz

February 02, 2015
Tweet

More Decks by Gabor Babicz

Other Decks in Programming

Transcript

  1. Transition plan We do not plan to remove support for

    existing templating syntax
 (or no-longer-necessary helpers like bind-attr) in Ember 2.0
  2. Transition plan We have no plans to remove support for

    the old component syntax
 in Ember 2.0
  3. Transition plan Block parameters will hopefully land in 1.12, and

    at that point the two special forms for {{each}} and {{with}} will be deprecated.
 You should refactor your templates to use the new block parameters syntax once it lands, as it is a purely mechanical refactor.
  4. Transition plan We plan to deprecate support for the context-shifting

    helpers in Ember 1.10 and remove support in Ember 2.0. This change should be entirely mechanical.
  5. Transition plan The new one-way default is triggered by the

    use of new component syntax. This means that component invocations in existing templates will continue to work without changes. To preserve the same semantics during a refactor to the new HTML- based syntax, you can simply mark all bindings as mut.
  6. Transition plan In Ember 2.0, we will stop setting attributes

    as properties
 on the component itself. We will also provide a transitional mixin that Ember addons can use that will make provided attributes available as attrs.*.
 This will allow add-ons to move to the new location, while maintaining support for older versions of Ember.
  7. Transition plan We plan to land support for routable components

    in Ember 1.12, and deprecate routable controllers at the same time. We plan to remove support for routable controllers in Ember 2.0. We will also provide an optional plugin for Ember 2.0 apps that restores existing behavior. This plugin will be included in the Ember automated test suite to ensure that we do not introduce accidental regressions in future releases on the 2.x series.
  8. Transition plan We will continue to support the sendAction API

    for the foreseeable future in today's Handlebars syntax.
  9. In Ember 2.0, we will be adopting a "virtual DOM"

    and data flow model that embraces the best ideas from React and simplifies communication between components.