window.location.hash

"
Change the demo's hash (try it) or push the back or forward button. Notice how can.route's attributes change.

can.route.attr(data)


			    
Add or change the Route Data's properties (except for the special route property). Notice how the hash changes.

can.route(route, default)

    can.route uses these routes to match and create urls. Edit the default values. Show Me

    can.route.link(name, data)

    Returns a link that updates the hash with a url determined by the routes. Specifically: . Try it:

    can.route.url(data)

    Returns a hash url determined by the routes. Specifically: . Go there!

    Events

    can.route.bind("change", function(ev, attr, how, newVal, oldVal){
      log(ev.batchNum, attr, how, newVal, oldVal)
    })
    batchNum attr how newVal oldVal