Home » Backbone.js collection.create()

Backbone.js collection.create()

by Online Tutorials Library

Backbone.js collection.create()

The Backbone.js collection create method is used to create a new instance of the model in the collection.

Syntax:


Parameter explanation:

attributes: It specifies the property of a defined model.

options: It specifies the parameters like id, name etc. to create the collection instance.

Let’s take an example to deploy the create method.

See this example:

You may also like