Home » Backbone.js model.idAttribute()

Backbone.js model.idAttribute()

by Online Tutorials Library

Backbone.js model.idAttribute()

The Backbone.js IdAttribute model gives us the model’s unique identifier which contains the name of the class member that will be used as id.

Syntax:

Let’s take an example.

See this example:

You may also like