Created
December 17, 2012 13:17
-
-
Save svparijs/4318210 to your computer and use it in GitHub Desktop.
Current Model
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
App.Person = DS.Model.extend({ | |
firstname: DS.attr('string'), | |
lastname: DS.attr('string'), | |
fullName: function() { | |
return this.get('firstname') + ' ' + this.get('lastname'); | |
}.property('firstname', 'lastname'), | |
didLoad: function() { | |
console.log(this.get('fullName') +" finished loading."); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment