Skip to content

Instantly share code, notes, and snippets.

@amk221
Last active November 5, 2015 12:04
Show Gist options
  • Save amk221/de53b39f5e1960004a20 to your computer and use it in GitHub Desktop.
Save amk221/de53b39f5e1960004a20 to your computer and use it in GitHub Desktop.
import Component from 'ember-component';
import computed from 'ember-computed';
import { displayName } from 'user/utils';
export default Component.extend({
displayName: computed(function() {
return displayName(this.get('user'));
}),
liveDisplayName: computed('firstName', 'lastName', function() {
return displayName(this.get('user'));
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment