Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit751373a

Browse files
authored
Merge pull request#515 from ernsheong/patch-1
Document proper way to use idAttribute
2 parentsb7cd4b3 +0005c58 commit751373a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎standalone-docs/basics/Fields.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@ Book.fields = {
8888
###idAttribute
8989
Sometimes backends store use natural keys as primary keys or call them differently. If that's the case we need to change the model's ID attribute.
9090
```js
91-
Book.idAttribute='title';// Default: 'id'
91+
Book.options= {
92+
idAttribute:'title';// Default: 'id'
93+
}
9294
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp