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.register( "{page}", { page: "home" } );
route.start();
route.data.page; // -> "home"
Use
After setting all your routes, call route.start()
.
route.register( "overview/{dateStart}-{dateEnd}" );
route.register( "{type}/{id}" );
route.start();