Backbone.js collection.where()

The Backbone.js collection where method retrieves and display the model by using the matched attribute in the collection.

Syntax:


Parameter explanation:

attributes: It specifies the property of a defined model.

Let's take an example to deploy the where method.

See this example:

Test it Now

Output:

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

BackboneJS Where Collection



Latest Courses