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

provideangularquery.md

40 lines775 Bytes

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