json - using ngInfiniteScroll on $resource? -


i've looked @ examples of using nginfinitescroll on @ demo site (http://binarymuse.github.io/nginfinitescroll/demos.html) seem using lower level $http service in order build scroll. issue have have resources built in factories using ngresource because i'm passing in other parameters in other controllers around app.

i'd know if still possible use nginfinitescroll using $resource instead of $http? i've yet find 1 example far request new page rest api have down below. code examples or ideas how done?

  .factory('allupcomingfactory', function($resource) {     return $resource('http://www.test.com/api/v1/channel_listings.json?page=:pageid&channel_id=:channelid',     {channelid: '@channelid', pageid: '@pageid'},     {'query':  {method:'get', isarray:false}});   }) 

angular ui has infinite scroll directive in ui-utils package allows creation of service drive object retrieval scroller. can check out here:

https://github.com/angular-ui/ui-utils/tree/master/modules/scroll


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -