Home » Backbone.js view.attributes()

Backbone.js view.attributes()

by Online Tutorials Library

Backbone.js view.attributes()

The Backbone.js attributes method specifies a hash of attributes that contains HTML DOM element attributes on the view’s el (id, class, data-properties, etc.), or a function that returns such a hash.

Syntax:

Let’s take an example.

See this example:

You may also like