Skip to content

Instantly share code, notes, and snippets.

@poteto
Last active August 29, 2015 14:13
Show Gist options
  • Save poteto/4a9938e3178f7c64370b to your computer and use it in GitHub Desktop.
Save poteto/4a9938e3178f7c64370b to your computer and use it in GitHub Desktop.
import Ember from 'ember';
var computed = Ember.computed;
var get = Ember.get;
export default Ember.Object.extend({
fullName: computed('firstName', 'lastName', function() {
return get(this, 'firstName') + ' ' + get(this, 'lastName');
}),
name: computed('fullName', function() {
return get(this, 'fullName');
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment