diff --git a/docs/config.json b/docs/config.json index 11a32c4323..cd66f9889e 100644 --- a/docs/config.json +++ b/docs/config.json @@ -1038,6 +1038,10 @@ "label": "Basic", "to": "framework/angular/examples/basic" }, + { + "label": "Pagination", + "to": "framework/angular/examples/pagination" + }, { "label": "Infinite query with Max pages", "to": "framework/angular/examples/infinite-query-with-max-pages" diff --git a/examples/angular/basic/README.md b/examples/angular/basic/README.md index 091e861860..15f2ed2f4a 100644 --- a/examples/angular/basic/README.md +++ b/examples/angular/basic/README.md @@ -1,4 +1,4 @@ -# Angular Query basic example +# TanStack Query Angular basic example To run this example: diff --git a/examples/angular/basic/src/app/app.config.ts b/examples/angular/basic/src/app/app.config.ts index db56fd38d5..75b2b84870 100644 --- a/examples/angular/basic/src/app/app.config.ts +++ b/examples/angular/basic/src/app/app.config.ts @@ -7,7 +7,6 @@ import type { ApplicationConfig } from '@angular/core' export const appConfig: ApplicationConfig = { providers: [ - provideHttpClient(withFetch()), provideAngularQuery( new QueryClient({ defaultOptions: { @@ -17,5 +16,6 @@ export const appConfig: ApplicationConfig = { }, }), ), + provideHttpClient(withFetch()), ], } diff --git a/examples/angular/basic/src/index.html b/examples/angular/basic/src/index.html index 53168b1751..0ca80dd67a 100644 --- a/examples/angular/basic/src/index.html +++ b/examples/angular/basic/src/index.html @@ -8,6 +8,6 @@
-