Last active
August 29, 2015 14:13
-
-
Save poteto/4a9938e3178f7c64370b to your computer and use it in GitHub Desktop.
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
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