Thursday, 24 September 2015

BackboneJS - Router

BackboneJS - Router
Router is used for routing client side applications and defines URL representation of application's object. Router is required when web applications provide linkable, bookmarkable, and shareable URL's for important locations in the app.
Following table lists down the methods which can be used to manipulate the BackboneJS - Router:
S.N.Methods & Description
1extend
It extends the backbone's router class.
2routes
It defines URL representation of applications objects.
3initialize
It creates new constructor for the router instantiation.
4route
It creates route for the router.
5navigate
It is used to update the URL in the applications.
6execute
It is used when a route matches its corresponding callback.

No comments:

Post a Comment