Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Route.extend({
  4. actions: {
  5. getMoreEpisodes() {
  6. const collection = this.get('controller.model.episodes');
  7. const params = this.get('episodesQueryParams');
  8. const store = this.get('store');
  9. const skip = params.incrementProperty('skip', params.get('limit'));
  10. const limit = params.get('limit');
  11. store.query('episode', params).then((episodes) => {
  12. collection.addObjects(episodes);
  13. });
  14. },
  15. }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement