Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ export const routes: Routes = [
},
// Basic
{
path: '10k-rows',
data: { title: '10k Rows', sourcePath: 'basic/10k-rows.component.ts' },
loadComponent: () => import('./basic/10k-rows.component').then(c => c.TenKRowsComponent)
path: 'large-data-set',
data: { title: 'Large Data Set', sourcePath: 'basic/large-data-set.component.ts' },
loadComponent: () =>
import('./basic/large-data-set.component').then(c => c.LargeDataSetComponent)
},
Comment thread
fh1ch marked this conversation as resolved.
{
path: 'full-screen',
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h4>Documentation</h4>
<h4>Basic</h4>
<ul>
<li>
<a routerLink="10k-rows">10k Rows</a>
<a routerLink="large-data-set">Large Data Set</a>
</li>
<li>
<a routerLink="full-screen">Full Screen</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { FullEmployee } from '../data.model';
import { DataService } from '../data.service';

@Component({
selector: 'ten-k-rows-demo',
selector: 'large-data-set-demo',
imports: [
DatatableComponent,
DataTableColumnDirective,
Expand Down Expand Up @@ -62,7 +62,7 @@ import { DataService } from '../data.service';
</ngx-datatable>
`
})
export class TenKRowsComponent {
export class LargeDataSetComponent {
private dataService = inject(DataService);
readonly rows = signal<(FullEmployee & { height: number })[]>([]);
readonly scrollTarget = signal(0);
Expand Down
Loading