Last active
August 29, 2015 14:13
-
-
Save poteto/dffee25dc1746f1c1978 to your computer and use it in GitHub Desktop.
cpm-example-1
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'); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment