Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

app.config.ts

17 lines535 Bytes

1import { provideHttpClient, withFetch } from '@angular/common/http'
2import { provideRouter, withComponentInputBinding } from '@angular/router'
3import {
4 QueryClient,
5 provideAngularQuery,
6} from '@tanstack/angular-query-experimental'
7​
8import { routes } from './app.routes'
9import type { ApplicationConfig } from '@angular/core'
10​
11export const appConfig: ApplicationConfig = {
12 providers: [
13 provideAngularQuery(new QueryClient()),
14 provideHttpClient(withFetch()),
15 provideRouter(routes, withComponentInputBinding()),
16 ],