Google News
logo
Backbone - Interview Questions
What is model.cid in Backbone.js?
In Backbone.js, the model.cid is a special property of models, the cid or client id, which is automatically assigned to all models when they are first created. The model.cid works as a unique identifier. This is very useful when the model is not saved to the server, but you want to show it on the UI.
Advertisement