Created
July 3, 2014 06:59
-
-
Save sclausen/4dccb6279f87da348cd1 to your computer and use it in GitHub Desktop.
foo route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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