Javatpoint Logo
Javatpoint Logo

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:

Test it Now

Output:

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

BackboneJS IdAttribute Model
Next TopicBackbone.js Cid





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA