Skip to content

Instantly share code, notes, and snippets.

@Mariusio
Created March 7, 2016 14:54
Show Gist options
  • Save Mariusio/e28dbd142dee58eda571 to your computer and use it in GitHub Desktop.
Save Mariusio/e28dbd142dee58eda571 to your computer and use it in GitHub Desktop.
createdByUserName: Ember.computed(
'userId',
function() {
this.store.findRecord('user', parseInt(this.get('userId'))).then((user) => {
console.log("userId");
console.log(this.get('userId'));
console.log(user);
console.log(user.get('firstname'));
return user.get('firstname');
});
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment