Skip to content

Instantly share code, notes, and snippets.

@jzgit
Created August 11, 2014 14:19
Show Gist options
  • Save jzgit/100fa725a270b1d18e74 to your computer and use it in GitHub Desktop.
Save jzgit/100fa725a270b1d18e74 to your computer and use it in GitHub Desktop.
Ember.Application.initializer({
name: 'categories',
after: 'store',
initialize: function(container) {
var store = container.lookup('store:main');
store.find('vote_categories').then(function(categories) {
container.lookup('controller:voteCategories').set('content', categories);
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment