BackboneJS - Router - Initialize - Backbone.js

Description

It creates a new constructor for the router instantiation.

Syntax

Parameters

  • options − These are passed to the initialize function.

Example

Output

Let us carry out the following steps to see how the above code works −

  • Save the above code in the initialize.htm file.
  • Open this HTML file in a browser.

NOTE − The above functionality is related to the address bar. So, when you open the above code in a browser, it will show result as follows.

initialize

Click here for the demo

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Backbone.js Topics