Skip to content

Instantly share code, notes, and snippets.

@george
Created September 10, 2012 01:43
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save george/3688362 to your computer and use it in GitHub Desktop.
Save george/3688362 to your computer and use it in GitHub Desktop.
Unofficial Ember.js Docs

Unofficial Ember.js Docs

This is an unofficial collection of resources for Ember.js. This is what worked for me. Hopefully you'll have a similar experience.

Get Help

Official Docs

Misc

General Understanding

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.

Specific Aspects & Techniques

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

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,

connectControllers

Ember.Select

Ember.Select Default Option

Named/Multiple Outlets

Overriding init()

Basically:

init: function() {
  // do stuff
  return this._super();
}

Navigation Routing Example

Ember-data

Using Ember.js with jQuery UI

A walk through the Ember ArrayProxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment