Giter Site home page Giter Site logo

ng-scroll-repeat's People

Contributors

floriangoussin avatar kstam avatar lionc avatar patrik-lundqvist avatar tcdevs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ng-scroll-repeat's Issues

Scroll upwards?

Can the scroll start in the middle and scroll both directions?

trigger event in a controller

Awesome library. It is a great fit for our current project. Way better than ng-infinite scroll. I just love the fact that the display of the elements is only dependent of the html code. Beautiful!

I would like however to trigger an event in my main controller when the bottom of the page is hit.
If there is already a way to do that, could you tell me asap, since I am going to create this feature and do a pull request when it will be done and properly tested.

I planned to extract calculateScrollBottomDiff in another factory under ks.WindowService and tell the ngScrollRepeat directive to use it to still work properly.

Thanks again for your great lib!

need to make request call to bring new items when we reach end of page through scrolling

I noticed that the directive is expecting all the json array items for scroll repeat to be available initially. But in my application initially the json array contains only 20 items. Then if I click 'Load More..' link I will bring another 20 items, as shown below
vm.loadMoreAPIs = function() {
vm.pageOffset = vm.pageOffset + vm.pageSize;
vm.bringItems();
};

As I can get nearly 10000 jsons in the the array. I don't want to brig all at a time.

I replaced the above code in controller as,

    $scope.$on('bottom-reached-before', function() {
    // do whatever you want
    vm.loadMoreAPIs();
    });

But after reaching the end of page through scrolling, new ajax call is not getting fired and my page always shows only first 20 items even after scrolling to the end of page. Is there any fix for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.