Can you do INFINITE scroll reactively in Angular? (no manual subscribes)
In the last video, we looked at how to implement pagination reactively with the async pipe (without ever having to manually subscribe). In this video, we do the same thing except for an infinite scrolling list which presents an interesting problem.
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Learn Angular with Ionic: https://ionicstart.com
Previous video: https://www.youtube.com/watch?v=3FyagQrMF_U
Source code: https://github.com/joshuamorony/reactive-infinite-pagination
0:00 Introduction
0:39 The scenario
1:17 Infinite scroll
3:41 Creating side effects
4:54 Why use trackBy?
5:57 Conclusion
#ionic #angular #rxjs
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony