Skip to content

Instantly share code, notes, and snippets.

@jaredatron
Created January 19, 2014 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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