Create an Infinite Scrolling list with Angular CDK Virtual Scroll and RxJS

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 32

  • @larryamisola
    @larryamisola 3 ปีที่แล้ว

    Very useful video. Please Continue providing angular material capabilities. Thanks for sharing.

    • @ZoaibKhan
      @ZoaibKhan  3 ปีที่แล้ว

      You're welcome, Larry! Noted about angular material :)

  • @ArpitDwivedi-h1h
    @ArpitDwivedi-h1h 9 หลายเดือนก่อน

    can you please tell me why the list is not showing in ordered manner.

    • @ZoaibKhan
      @ZoaibKhan  9 หลายเดือนก่อน

      Because you haven't applied sorting to it?

  • @shubhambahre9021
    @shubhambahre9021 ปีที่แล้ว

    How to stop this once all the items have finished loading?
    Let's say I am doing infinite scroll from 5000 items and loading 20 at a time. If I have scrolled enough to load all 5000, how to stop the infinite scroll?

  • @ivanconsalter8138
    @ivanconsalter8138 2 ปีที่แล้ว

    amazing tutorial, congratulations I have a primeng p-dropdown, backend is paginated and comes 50 items per page, can I make the scroll effect to change pages and bring other items?

    • @ZoaibKhan
      @ZoaibKhan  2 ปีที่แล้ว +1

      Thanks Ivan! By the scroll effect you mean the load more spinner? If you're using a component library it usually does have some built in way to do that. If not, then you can probably use the lists scroll events to build up something like I did here

    • @ivanconsalter8138
      @ivanconsalter8138 2 ปีที่แล้ว +1

      @@ZoaibKhan ok, thanks again..👍

  • @akshayshankariya1984
    @akshayshankariya1984 2 ปีที่แล้ว +1

    Thanks Sir helped me a lot ❤️❤️

    • @ZoaibKhan
      @ZoaibKhan  2 ปีที่แล้ว

      You're welcome!

    • @akshayshankariya1984
      @akshayshankariya1984 2 ปีที่แล้ว

      @@ZoaibKhan working on real time project and these concept helped to improve the performance ❤️❤️

  • @amolgode9843
    @amolgode9843 3 ปีที่แล้ว +1

    Hii sir.. you're tutorials are so helpful..
    Can you make video on
    Sign in and login page

    • @ZoaibKhan
      @ZoaibKhan  3 ปีที่แล้ว +1

      Thanks Amol!
      Sure, I was planning on doing a login/sign up series with firebase authentication. Will you find that useful?

    • @amolgode9843
      @amolgode9843 3 ปีที่แล้ว

      @@ZoaibKhan great.. :)

  • @venuyadavboini2127
    @venuyadavboini2127 2 ปีที่แล้ว

    I have used this virtual scroll in my project it is working fine but when ever i am trying scroll to the down items are getting loaded slowly and sometimes it is blank for a while(1 to 2 sec) how can I avoid this

    • @ZoaibKhan
      @ZoaibKhan  2 ปีที่แล้ว

      You mean the loader is not showing up?

  • @TheStusaw
    @TheStusaw 3 ปีที่แล้ว

    For some reason I couldn't get this working without running manual change detection? Thanks for the tutorial though.

    • @ZoaibKhan
      @ZoaibKhan  3 ปีที่แล้ว

      Do you have Change Detection set to onPush on your components? And you're welcome :)

  • @zackz6600
    @zackz6600 2 ปีที่แล้ว

    Can I make a virtual scroll if child elements are not all the same height?

    • @ZoaibKhan
      @ZoaibKhan  2 ปีที่แล้ว +1

      Yes, I believe so. But you might need to use another third party virtual scroller for the purpose. I've used ngx virtual scroller in some of my projects and it works great for non equal list items.

  • @Xrat88
    @Xrat88 2 ปีที่แล้ว

    Wow, pretty nice video, It was so clear!

  • @gabrielferrin
    @gabrielferrin 3 ปีที่แล้ว

    Nice contribution. Thank you.

    • @ZoaibKhan
      @ZoaibKhan  3 ปีที่แล้ว

      You're welcome Gabriel! Glad you liked it

  • @sarwankumar5339
    @sarwankumar5339 11 หลายเดือนก่อน

    Nice one

    • @ZoaibKhan
      @ZoaibKhan  11 หลายเดือนก่อน

      Thanks 🔥

  • @RoberttDD
    @RoberttDD 5 หลายเดือนก่อน

    Very helpful. It is something that I needed for one of my projects. Thank you

    • @ZoaibKhan
      @ZoaibKhan  5 หลายเดือนก่อน

      Glad it was helpful!

  • @koteswarnukani-ps8dj
    @koteswarnukani-ps8dj ปีที่แล้ว

    Awesome, keep post great stuff like this @zoaib khan, can you pls make this work along with drag and drop , so than ist greatfull

    • @ZoaibKhan
      @ZoaibKhan  ปีที่แล้ว

      Thanks! Do you mean drag and drop to move items from one list to ther other or something else?

    • @koteswarnukani-ps8dj
      @koteswarnukani-ps8dj ปีที่แล้ว

      @@ZoaibKhan no same list of table , but both combination drag and drop with virtual scroll should work, lot of people struggling to work both combination, you can make it simple, that makes it helps to everyone, Thana again for replying, great

    • @ZoaibKhan
      @ZoaibKhan  ปีที่แล้ว

      @@koteswarnukani-ps8dj aah, I see.