Skip to content

Commit 075ce7d

Browse files
committed
docs: rewrite tanstack form example
1 parent 0d07d77 commit 075ce7d

60 files changed

Lines changed: 5416 additions & 1285 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/angular/with-tanstack-form/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
"@angular/platform-browser": "^22.0.2",
1919
"@angular/router": "^22.0.2",
2020
"@faker-js/faker": "^10.5.0",
21+
"@tanstack/angular-devtools": "^0.0.4",
2122
"@tanstack/angular-form": "^1.33.0",
2223
"@tanstack/angular-table": "^9.0.0-beta.21",
24+
"@tanstack/angular-table-devtools": "^9.0.0-beta.21",
2325
"rxjs": "~7.8.2",
2426
"tslib": "^2.8.1",
2527
"zod": "^4.4.3"
Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1-
import { provideBrowserGlobalErrorListeners } from '@angular/core'
1+
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
2+
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
23
import { provideRouter } from '@angular/router'
34
import { routes } from './app.routes'
45
import type { ApplicationConfig } from '@angular/core'
56

67
export const appConfig: ApplicationConfig = {
7-
providers: [provideBrowserGlobalErrorListeners(), provideRouter(routes)],
8+
providers: [
9+
provideBrowserGlobalErrorListeners(),
10+
provideRouter(routes),
11+
isDevMode()
12+
? provideTanStackDevtools(() => ({
13+
plugins: [
14+
{
15+
name: 'TanStack Table',
16+
render: () =>
17+
import('@tanstack/angular-table-devtools').then((m) =>
18+
m.TableDevtoolsPanel(),
19+
),
20+
},
21+
],
22+
}))
23+
: [],
24+
],
825
}

0 commit comments

Comments
 (0)