Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Route.extend({
- actions: {
- getMoreEpisodes() {
- const collection = this.get('controller.model.episodes');
- const params = this.get('episodesQueryParams');
- const store = this.get('store');
- const skip = params.incrementProperty('skip', params.get('limit'));
- const limit = params.get('limit');
- store.query('episode', params).then((episodes) => {
- collection.addObjects(episodes);
- });
- },
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement