Skip to content

Commit 9a4a8cf

Browse files
committed
revert basic
1 parent 3b4e9bd commit 9a4a8cf

File tree

3 files changed

+4
-45
lines changed

3 files changed

+4
-45
lines changed

examples/angular/basic/src/app/app.component.html

+2-42
Original file line numberDiff line numberDiff line change
@@ -61,46 +61,6 @@
6161
</tfoot>
6262
</table>
6363

64-
<div class="h-2"></div>
65-
<div class="flex items-center gap-2">
66-
<button
67-
class="border rounded p-1"
68-
(click)="table.setPageIndex(0)"
69-
[disabled]="!table.getCanPreviousPage()"
70-
>
71-
<<
72-
</button>
73-
<button
74-
class="border rounded p-1"
75-
(click)="table.previousPage()"
76-
[disabled]="!table.getCanPreviousPage()"
77-
>
78-
<
79-
</button>
80-
<button
81-
class="border rounded p-1"
82-
(click)="table.nextPage()"
83-
[disabled]="!table.getCanNextPage()"
84-
>
85-
>
86-
</button>
87-
<button
88-
class="border rounded p-1"
89-
(click)="table.setPageIndex(table.getPageCount() - 1)"
90-
[disabled]="!table.getCanNextPage()"
91-
>
92-
>>
93-
</button>
94-
<span class="flex items-center gap-1">
95-
<div>Page</div>
96-
<strong>
97-
{{ table.getState().pagination.pageIndex + 1 }} of
98-
{{ table.getPageCount() }}
99-
</strong>
100-
</span>
101-
</div>
102-
<br />
64+
<div class="h-4"></div>
65+
<button (click)="rerender()" class="border p-2">Rerender</button>
10366
</div>
104-
<hr />
105-
<br />
106-
<div></div>

examples/angular/basic/src/app/app.component.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
FlexRenderDirective,
77
getCoreRowModel,
88
} from '@tanstack/angular-table'
9-
import { FormsModule } from '@angular/forms'
109

1110
type Person = {
1211
firstName: string
@@ -82,7 +81,7 @@ const defaultColumns: ColumnDef<Person>[] = [
8281
@Component({
8382
selector: 'app-root',
8483
standalone: true,
85-
imports: [RouterOutlet, FlexRenderDirective, FormsModule],
84+
imports: [RouterOutlet, FlexRenderDirective],
8685
templateUrl: './app.component.html',
8786
changeDetection: ChangeDetectionStrategy.OnPush,
8887
})

examples/angular/editable/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tanstack-table-example-angular-editable",
2+
"name": "tanstack-table-example-angular-editabley",
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",

0 commit comments

Comments
 (0)