Skip to content

Instantly share code, notes, and snippets.

@amk221
Last active November 5, 2015 10:49
Show Gist options
  • Save amk221/51115efeb19bfc5daf2d to your computer and use it in GitHub Desktop.
Save amk221/51115efeb19bfc5daf2d to your computer and use it in GitHub Desktop.
Model.extend({
firstName: attr('string'),
lastName: attr('string'),
displayName: computed('firstName', 'lastName', function() {
return this.get('firstName') + ' ' + this.get('lastName');
})
// etc...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment