UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

12 lines (9 loc) 281 B
@property {String} can.Model.id id @parent can.Model.static The name of the id field. Defaults to `'id'`. Change this if it is something different. For example, it's common in .NET to use `'Id'`. Your model might look like: ``` Friend = can.Model.extend({ id: "Id" },{}); ```