This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Greetings couchdb pals, | |
__ | |
.'` `'. | |
/ \ _ | |
; __.'` `'. | |
| .'` `'. \ | |
; /Fauxton \ ; | |
\; UI ; | | |
| Redesign | ; _ | |
; is live ;-./-_-` '-. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You might be used to thinking of a model like a prototype. | |
You know a Person in your DB will have the following attributes: Name, Age, Phone | |
in backbone you'd make a model for person like this | |
Person = Backbone.Model.extend({ | |
defaults: { | |
name:"Billy", | |
age:"33", | |
phone:"555-555-5555" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"temporary": "FALSE", | |
"name": "Fan Pier", | |
"installed": "TRUE", | |
"terminalName": "A32000", | |
"lat": "42.353412", | |
"locked": "FALSE", | |
"lng": "-71.044624", | |
"id": "7" |
NewerOlder