Home » Backbone.js collection.where()

Backbone.js collection.where()

by Online Tutorials Library

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:

You may also like