This is an unofficial collection of resources for Ember.js. This is what worked for me. Hopefully you'll have a similar experience.
- stackoverflow: http://stackoverflow.com/questions/tagged/ember.js
- IRC:
#emberjs
on freenode
- Edge docs: http://docs.edge.emberjs.com
- Pivotal Tracker: https://www.pivotaltracker.com/projects/629735
- Potentially Useful Links and Posts: https://github.com/emberjs/ember.js/wiki/Links
- Ember Cookbook (nascent): https://github.com/trek/EmberCookbook
If you're brand new to Ember, spend some time on http://emberjs.com/documentation and http://emberjs.com/guides.
Once you have the lay of the land, read the Trek article: http://trek.github.com. There's a lot going on there; no one will think less of you if you have to read it more than once to fully appreciate it.
When you start implementing your first Ember project, keep https://github.com/bazzel/ember-sample2 on hand as a ready reference. You'll get the most out of it if you clone it and get it running locally. (See: https://github.com/bazzel/ember-sample2#getting-started.) ember-sample2
is particularly good for its routing code.
Now available: https://github.com/bazzel/ember-sample3 (with Ember.Select
example.
The references below are what I personally thought were helpful resources for understanding specific aspects of and techniques in Ember. They may not work for you, so take them with a grain of salt.
(The interested reader is encouraged to fork this gist and make the appropriate changes.)
connectOutlets
is really just a generic callback when a given state is entered on the router. It's typically used to connect outlets, but is also useful for other types of setup, such as connectControllers
.
Here's the code:
/**
The `connectOutlets` event will be triggered once a
state has been entered. It will be called with the
route's context.
*/
connectOutlets: Ember.K,
- Edge docs: http://docs.edge.emberjs.com/#doc=Ember.Select&src=false
- SO: http://stackoverflow.com/questions/11659707/ember-select-contentbinding-in-app-that-uses-router (jsfiddle)
Basically:
init: function() {
// do stuff
return this._super();
}
- Ember Data Record Lifecycle: http://emberjs.com/guides/ember-data-lifecycle/
- ...and Active Model Serializers: http://stackoverflow.com/questions/11572735/ember-data-nested-resource-url