Backbone.js model.attributes()

The Backbone.js attributes define the property of a model and uses the set() method to update the attributes.

Syntax:

Let's take an example.

See this example:

Test it Now

Output:

Save the above code in attributes.html file and open this file in a new browser.

BackboneJS Attributes Model



Latest Courses