window.location

"
Change the demo's path (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 path changes.

can.route(route, default)

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

    can.link(name, data)

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

    can.url(data)

    Returns a path 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