Skip to content

Instantly share code, notes, and snippets.

@bobbywilson0
Last active August 29, 2015 13:55
Show Gist options
  • Save bobbywilson0/8694008 to your computer and use it in GitHub Desktop.
Save bobbywilson0/8694008 to your computer and use it in GitHub Desktop.
TypeFast.GameController = Ember.Controller.extend({
quote: model.body,
word: ''
});
TypeFast.GameRoute = Ember.Route.extend({
model: function() {
return this.store.find('quote', Math.floor((Math.random()*3)+1));
},
setupController: function(controller, model) {
controller.set('model', model);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment