Backbone.js Router.extend()The Backbone.js router extend method is used to extend the router class and create new constructor inherited from the Backbone.Router. It defines some triggered actions when specific URL fragments are matched and provides routes for those actions. Syntax: Parameter explanation:
Let's take an example. See this example: |