Components are taking center stage in Ember 2.0. Here are some things you can do today to make the transition as smooth as possible:
-
Use Ember CLI
-
In general, replace views + controllers with components
-
Only use controllers at the top-level for receiving data from the route, and use
Ember.Controller
instead ofEmber.ArrayController
orEmber.ObjectController
-
Fetch data in your route, and set it on
attrs
on your top-level controller:```js //controllers/index.js import Ember from 'ember';