Home » Backbone.js model.isnew()

Backbone.js model.isnew()

by Online Tutorials Library

Backbone.js model.isNew()

The Backbone.js isNew model determines the state of new. If a model doesn’t have an id and is not saved to the server, it is considered to be new.

Syntax:

Let’s take an example.

See this example:

You may also like