Skip to content

Instantly share code, notes, and snippets.

@jaredatron
Created January 19, 2014 23:23
Show Gist options
  • Save jaredatron/8512370 to your computer and use it in GitHub Desktop.
Save jaredatron/8512370 to your computer and use it in GitHub Desktop.
App.User = Ember.Object.extend({
email: null,
name: {
first: null,
last: null,
location: null,
persistLogin: false,
roles: []
},
fullName: function() {
return this.get('name.first') + ' ' + this.get('name.last'); // <-- This is right?
}.property('name.first', 'name.last'), // <-- This is right?
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment