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

provideAngularQuery.md

36 lines745 Bytes

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