Skip to content

Instantly share code, notes, and snippets.

@maletor
Created August 26, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maletor/e113181c309118b45426bfec200da610 to your computer and use it in GitHub Desktop.
Save maletor/e113181c309118b45426bfec200da610 to your computer and use it in GitHub Desktop.
// app/services/invite.js
recommendationsFromStore: Ember.computed(function(){
return this.get('store').findAll('pymkRecommendation');
}),
// app/templates/components/people-you-may-know.hbs
{{#each invite.recommendationsFromStore as |person|}}
// app/components/people-you-may-know.js
export default Ember.Component.extend({
invite: Ember.inject.service(),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment