Skip to content

Commit

Permalink
Use can-route .start() instead of .ready()
Browse files Browse the repository at this point in the history
  • Loading branch information
chasenlehara committed Dec 7, 2017
1 parent 22f537b commit a404c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion can-stache-route-helpers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ QUnit.test("routeUrl and routeCurrent", function(){
mockRoute.start();
var routeData = new CanMap({});
route.data = routeData;
route.ready();
route.start();

var template = stache("<a href=\"{{routeUrl(page='recipe' id=recipe.id)}}\">{{recipe.name}}</a>");

Expand Down
2 changes: 1 addition & 1 deletion docs/route-url.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ <h1>Restaurants page</h1>
import $ from "jquery";

can.route(':page',{page: 'home'});
can.route.ready();
can.route.start();
$("body").append( can.view('demo-html',route) );
</script>

0 comments on commit a404c92

Please sign in to comment.