dojo/router (version 1.10)

Summary

A singleton-style instance of dojo/router/RouterBase. See that module for specifics.

See the dojo/router reference documentation for more information.

Examples

Example 1

router.register("/widgets/:id", function(evt){
    // If "/widgets/3" was matched,
    // evt.params.id === "3"
    xhr.get({
        url: "/some/path/" + evt.params.id,
        load: function(data){
            // ...
        }
    });
});
Error in the documentation? Can’t find what you are looking for? Let us know!