id

  • property
can.Model.id

{String}

 

The name of the id field. Defaults to 'id'. Change this if it is something different.

String

For example, it's common in .NET to use 'Id'. Your model might look like:

Friend = can.Model.extend({
  id: "Id"
},{});