sroze / ngInfiniteScroll

Infinite Scrolling for AngularJS
http://sroze.github.com/ngInfiniteScroll/
MIT License
2.89k stars 723 forks source link

Infinite scroll works on dev code but does not when packaged #351

Open federicoiosue opened 7 years ago

federicoiosue commented 7 years ago

I'm working on a Electron+AngularJS cross-platform note-taking app.

The source code (patial, controller) works correctly but once I use electron-packager to build distributable folders the infinite-scroll directive callback is never called, so new items are note loaded into the app.

graingert commented 7 years ago

@federicoiosue if you're just starting a new project start with Angular 2. Misinterpreted you. I thought you had started a new project.

graingert commented 7 years ago

have you tried https://material.angularjs.org/latest/api/directive/mdVirtualRepeat instead?

federicoiosue commented 7 years ago

Too many components missing in Material Angular at the moment I started the project

graingert commented 7 years ago

@federicoiosue you can use mdVirtualRepeat on its own

federicoiosue commented 7 years ago

That'll eventually be my fallback. What I liked of this library is that dropping material would not break infinite loading.

The strange thing is that the source code perfectly works.

I've enabled devtools when launching builded files and it seems that the library is correctly loaded. I'll try to compare behaviors to dig further and discover what break callback.