start
Initializes can-route.
route.start()
Sets up the two-way binding between the hash and the can-route observable map and sets the route map to its initial values.
route("{page}", { page: "home" }));
route.start();
route.data.page; // -> "home"
Use
After setting all your routes, call route.start()
.
route("overview/{dateStart}-{dateEnd}");
route("{type}/{id}");
route.start();