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

provideAngularQuery.md

38 lines818 Bytes

1---
2id: provideAngularQuery
3title: provideAngularQuery
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8```ts
9function provideAngularQuery(queryClient: QueryClient): Provider[];
10```
11​
12Defined in: [packages/angular-query-experimental/src/providers.ts:115](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L115)
13​
14Sets up providers necessary to enable TanStack Query functionality for Angular applications.
15​
16Allows configuring a `QueryClient`.
17​
18## Parameters
19​
20### queryClient
21​
22[`QueryClient`](../classes/QueryClient.md)
23​
24A `QueryClient` instance.
25​
26## Returns
27​
28`Provider`[]
29​
30A set of providers to set up TanStack Query.
31​
32## See
33​
34https://tanstack.com/query/v5/docs/framework/angular/quick-start
35​
36## Deprecated
37​
38Use `provideTanStackQuery` instead.