Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : findOne based on route

$
0
0
I think you might find a similar example in http://canjs.com/guides/Components.html under the Events heading.

Your commits component should have a scope variable `commit`. Your mustache template will of course reference it. When the route changes, make a Commit.findOne() call after which, replace the scope variable with `this.scope.attr('commit', commit)`.


Viewing all articles
Browse latest Browse all 3491

Trending Articles