Backbone.js Model

Being the heart of any Javascript application, the models are known to be the most important building blocks for the creation of Javascript applications. The core of a JavaScript application is a Model. The data is retrieved and is populated by the model. A Model is a representation of a basic data object in the … Read more

Backbone.JS stopListening() Event

The Backbone.JS event stopListening() method is used to stop listening to another object’s event. Syntax: object.stopListening(other, event, callback) Parameters: other: This parameter is used to specify the name of the other object. event: This parameter is used to specify the event whose binding with an object is needed. callback: This parameter is used to specify … Read more

Backbone.JS listenTo() Event

The Backbone.JS event listenTo() method is used to inform one object to listen to another object’s event. When an event occurs, it provides a callback function. It also keep a track for the events. The attribute of the events in Backbone.JS to get mixed to any object is an advantage. Syntax: object.listenTo(other, event, callback) Parameters: … Read more

Backbone.JS listenToOnce() Event

The Backbone.JS Event listenToOnce() method is used to inform one object to listen to another object’s event, same as that of Event listenTo() method. When an event occurs, it also provides a callback function. It also keep a track for the events. The only difference between the Event listenToOnce() method and the Event listenTo() method … Read more

Backbone.JS once() Event

The Backbone.JS event once() method extends the Backbone.model class while a backbone model is being created. It works the same as the Backbone.JS event on() method with the only difference that it causes the firing of the bound callback only once and after that it is removed. Syntax: object.once(event, callback, context) Parameters: event: This parameter … Read more

Backbone.js trigger() Event

The Backbone.js event trigger method invokes the callback functions for the mentioned events. Syntax: object.trigger(event, arg) Parameters: event: This parameter is used to specify the event whose binding with an object is needed. arg: It is an optional parameter that is used to specify the values or arguments to be passed to the callback function. … Read more

Backbone.JS on() Event

The Backbone.JS event on() method binds an event to an object and executes the callback when an event is fired. Syntax: object.on(event, callback, context) Parameters: event: This parameter is used to specify the event whose binding with an object is needed. callback: This parameter is used to specify the callback function that will be executed … Read more

Backbone.js Events

  The view displays the data of the model when an event occurs, and thus event is a vital part of an application. The attribute of the events in Backbone.JS to get mixed to any object is an advantage. The binding of the custom events can be done by using the name of a choice. … Read more

Backbone.js Architecture

The structure to the web applications in Backbone.JS can be easily understood and specified by its architecture. The separation of the business logic and the user interface logic is easily possible with this architecture. There are mainly seven modules in the Backbone.js Architecture: HTTP Request, Router, View, Events, Model, Collection and Data Source.   MODULE … Read more

Backbone.js Features

Backbone.JS is unique in every possible way. But some of its prominent features make it more special. Being a JavaScript library or framework, the Backbone.JS is known to be a very lightweight framework and is thus one of the best choices to create an application, especially a single page application. Some of the unparalleled features … Read more