ember.js - Could not find module `ember-infinity/mixins/route` -
i trying implement infinite-scrolling using ember-infinity. have followed documentation getting error "could not find module ember-infinity/mixins/route
" below code
import ember 'ember'; import infinityroute 'ember-infinity/mixins/route'; export default ember.route.extend(infinityroute,{ store: ember.inject.service(), model(){ var inflector = ember.inflector.inflector; inflector.irregular('feed', 'feeds.php'); inflector.uncountable('advice'); let user = json.parse(localstorage.getitem('user')); let token = localstorage.getitem('token'); if(user != null){ //return this.get('store').query('feed',{page:1,userid:user.id,token:token}); return this.infinitymodel("feed", { perpage: 12, startingpage: 1,userid:user.id,token:token }); } } , actions:{ getdetails(feed){ console.log("getting details of "+feed.id); } } });
could please tell me causing error or tutorial can teach infinite-scrolling using ember js?
don't forget restart ember-cli after install it.
Comments
Post a Comment