diff --git a/modules/benchmarks/src/largetable/ng2/table.ts b/modules/benchmarks/src/largetable/ng2/table.ts
index dc3a07be0a..53ecbcd1d5 100644
--- a/modules/benchmarks/src/largetable/ng2/table.ts
+++ b/modules/benchmarks/src/largetable/ng2/table.ts
@@ -5,8 +5,13 @@ import {TableCell, emptyTable} from '../util';
@Component({
selector: 'largetable',
- template:
- `
`
+ template: `
+
+
+ {{cell.value}}
+ |
+
+
`,
})
export class TableComponent {
@Input()
diff --git a/modules/benchmarks/src/largetable/ng2_switch/table.ts b/modules/benchmarks/src/largetable/ng2_switch/table.ts
index 0ab2f7df6e..bcb307076a 100644
--- a/modules/benchmarks/src/largetable/ng2_switch/table.ts
+++ b/modules/benchmarks/src/largetable/ng2_switch/table.ts
@@ -6,18 +6,18 @@ import {TableCell, emptyTable} from '../util';
@Component({
selector: 'largetable',
template: `
-
-
-
- {{cell.value}} |
- {{cell.value}} |
-
-
-
`
+
+
+ {{cell.value}} | {{cell.value}} |
+
+
+ `
})
export class TableComponent {
@Input()
data: TableCell[][] = emptyTable;
+
+ trackByIndex(index: number, item: any) { return index; }
}
@NgModule({imports: [BrowserModule], bootstrap: [TableComponent], declarations: [TableComponent]})