This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
@Component({ | |
selector: 'list', | |
templateUrl: './list.component.html', | |
styleUrls: ['./list.component.scss'], | |
changeDetection: ChangeDetectionStrategy.OnPush | |
}) | |
export class ListComponent implements OnChanges { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
@Component({ | |
selector: 'list', | |
templateUrl: './list.component.html', | |
styleUrls: ['./list.component.scss'] | |
}) | |
export class ListComponent implements OnChanges { | |
@Input() rows: Transaction[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CPU type/Number of rows | 1 | 5 | 10 | |
---|---|---|---|---|
Optimal CPU | 11ms | 40ms | 37ms | |
6x CPU slowdown | 81ms | 160ms | 201ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<tr [ngClass]="getRowClass(row)" | |
#transaction | |
(click)="lock(row, $event)" | |
[model]="row" | |
ngFor="let row of rows; trackBy:rowIdentity"> | |
</tr> | |
... |
NewerOlder