Skip to content

Instantly share code, notes, and snippets.

@sclausen
Created July 3, 2014 06:59
Show Gist options
  • Save sclausen/4dccb6279f87da348cd1 to your computer and use it in GitHub Desktop.
Save sclausen/4dccb6279f87da348cd1 to your computer and use it in GitHub Desktop.
foo route
this.route("foo", {
waitOn: function() {
return subs.subscribe("foo")
},
data: function() {
if (this.ready()) {
return {
foos: Foo.find()
}
}
},
action: function() {
if (this.ready()) {
this.render()
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment