Skip to content

Instantly share code, notes, and snippets.

@jnjcub
Created February 17, 2017 18:41
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 jnjcub/b71250d3f87730c1aa8baa66cf239aeb to your computer and use it in GitHub Desktop.
Save jnjcub/b71250d3f87730c1aa8baa66cf239aeb to your computer and use it in GitHub Desktop.
tracker cp
trackers: computed('model.isLoaded',{
get(key) {
if (get(this, 'model.isLoaded')) {
get(this, 'store').query('tracker', {'kid_id' : get(this, 'model').get('id')}).then((trackers) =>
return set(this, 'trackers', trackers);
});
}
return null;
},
set(key, value) {
return value;
}
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment