react-code-dataset / react-query /examples /angular /query-options-from-a-service /src /app /app.config.ts
| import { provideHttpClient, withFetch } from '@angular/common/http' | |
| import { provideRouter, withComponentInputBinding } from '@angular/router' | |
| import { | |
| QueryClient, | |
| provideTanStackQuery, | |
| withDevtools, | |
| } from '@tanstack/angular-query-experimental' | |
| import { routes } from './app.routes' | |
| import type { ApplicationConfig } from '@angular/core' | |
| export const appConfig: ApplicationConfig = { | |
| providers: [ | |
| provideHttpClient(withFetch()), | |
| provideRouter(routes, withComponentInputBinding()), | |
| provideTanStackQuery(new QueryClient(), withDevtools()), | |
| ], | |
| } | |