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

provideAngularQuery.md

38 lines703 Bytes

1---
2id: provideAngularQuery
3title: provideAngularQuery
4---
5​
6# ~~Function: provideAngularQuery()~~
7​
8```ts
9function provideAngularQuery(queryClient): Provider[];
10```
11​
12Defined in: [providers.ts:124](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124)
13​
14Sets up providers necessary to enable TanStack Query functionality for Angular applications.
15​
16Allows to configure a `QueryClient`.
17​
18## Parameters
19​
20### queryClient
21​
22`QueryClient`
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.