dojo/router

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){
            // ...
        }
    });
});

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/router.html