Backbone.JS Router Routes()

The Backbone.JS Router Routes() method defines the URL representation of application’s objects on routers.

Syntax:

Router.Routes

Example:

  

  
Example  
  
  
  
  
  
  
  
  

Output:

Called Route 1.

Explanation: In the above example the Routes() method calls the desired route.

Please follow and like us:
Content Protection by DMCA.com