Skip to content

Commit aa6b6db

Browse files
author
Lee Richmond
committed
Update example file
1 parent a3ddda1 commit aa6b6db

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@
1717
baseUrl: 'http://localhost:3000/api'
1818
},
1919

20-
first_name: attr()
20+
firstName: attr(),
21+
lastName: attr(),
22+
fullName() {
23+
return this.firstName + ' ' + this.lastName;
24+
}
2125
});
2226

2327
Staffer.find(1297466).then((s) => {
2428
console.log(s);
25-
console.log(s.marital_status);
29+
console.log(s.fullName());
2630
});
2731

2832
Config.bootstrap();

0 commit comments

Comments
 (0)