Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Angular 5.2.x] - Page get stucked with ngx-virtual-scroller #536

Open
sohaieb opened this issue Oct 5, 2022 · 2 comments
Open

[Angular 5.2.x] - Page get stucked with ngx-virtual-scroller #536

sohaieb opened this issue Oct 5, 2022 · 2 comments

Comments

@sohaieb
Copy link

sohaieb commented Oct 5, 2022

Hello,
I recently installed ngx-virtual-scroller for my Angular: 5.2.5 project to use, but when I route to the component (page) which contains ngx-virtual-scroller it stuck and all the page get blocked until I close the hole Brows Tab

Here is the chunk of code i used inside the view: (the parent is scrollable)

<div #scrolledContainer class="shared-table-scrolled-content">
    <div class="shared-table-rows">

      <!-- Data Rows -->
      <virtual-scroller #scroll [items]="rows" [parentScroll]="scrolledContainer">
        <div class="shared-table-row"
             *ngFor='let row of scroll.viewPortItems; let i = index, let last = last;  trackBy: trackByFnInpt.trackByFn'
            [class.last-row]="last"
        >
          <ng-container *ngTemplateOutlet="rowsContentRef;context: {rows: rows, row: row, i: i}"></ng-container>
        </div>
      </virtual-scroller>
      <div class="shared-table-row empty-table" *ngIf="!rows || !rows.length">
        No records found.
      </div>
    </div>
  </div>

the installed version of ngx-virtual-scroller is ngx-virtual-scroller@4.0.3

@floogulinc
Copy link

Angular 5 is nearly 5 years old. This project has a peer dependency of Angular 6 or higher. I suggest you update Angular and see if that helps.

@sohaieb
Copy link
Author

sohaieb commented Oct 26, 2022

@floogulinc thank you for your reply,
Actually, we can not upgrade the angular version of the current projet because we will face a very big and difficult amount of changes to handle to the hole app. That's why I'm searching for an alternative solution to this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants