1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Ng Select (scrollToEnd) emits the event only once

Discussão em 'Angular' iniciado por Shivam, Junho 9, 2025.

  1. Shivam

    Shivam Guest

    I am using ng-select version 9.0.1. The (scrollToEnd) emits the event only once.

    <ng-select (scrollToEnd)="test($event)" [virtualScroll]="true" [items]="usersList" bindLabel="name" bindValue="id"></ng-select>


    I am loading certain number of items when the scrollbar reaches to end

    test(e) {
    console.log('Event', e)
    console.log(this.usersList)
    for (let index = 0; index < 30; index++) {
    this.usersList = [...this.usersList, {id: 1, name: 'New item'+index}];
    }
    }

    Continue reading...

Compartilhe esta Página