Skip to content

Instantly share code, notes, and snippets.

@nerdyworm
Created April 17, 2013 17:59
Show Gist options
  • Save nerdyworm/5406392 to your computer and use it in GitHub Desktop.
Save nerdyworm/5406392 to your computer and use it in GitHub Desktop.
Ember.Application.initializer({
name: "loadWidgets",
initialize: function(container) {
App.deferReadiness();
Ember.$.getJSON("/widgets.json", function(json) {
var store = container.get('store:main');
store.load(App.Widgets, json);
App.advanceReadiness();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment