Methods | Syntax | Description |
---|
extend | Backbone.Router.extend(properties, [classProperties]) | It extends the backbone’s router class. |
routes | router.routes | It defines the URL representation of applications objects. |
preinitialize | new Backbone.Router([options]) | For use with routers as ES classes. |
constructor / initialize | new Router([options]) | It creates a new constructor for the router instantiation. |
route | router.route(route, name, [callback]) | It creates a route for the router. |
navigate | router.navigate(fragment, [options]) | It is used to update the URL in the applications. |
execute | router.execute(callback, args, name) | It is used when a route matches its corresponding callback. |