Created
February 17, 2017 18:41
-
-
Save jnjcub/b71250d3f87730c1aa8baa66cf239aeb to your computer and use it in GitHub Desktop.
tracker cp
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
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