File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ id: angular-query
3
3
title : Angular Query
4
4
---
5
5
6
- The Angular adapter is available as a community library: [ ngneat/query ] ( https://ngneat.github.io/query/ ) . It is based on the TanStack/query-core .
6
+ The Angular adapter is now available for TanStack Query v5 .
7
7
8
- ## Installation
9
-
10
- ``` bash
11
- $ npm i @ngneat/query
12
- # or
13
- $ pnpm add @ngneat/query
14
- # or
15
- $ yarn add @ngneat/query
8
+ ``` ts
9
+ postQuery = injectQuery (() => ({
10
+ enabled: this .postId () > 0 ,
11
+ queryKey: [' post' , this .postId ()],
12
+ queryFn : () => lastValueFrom (this .getPost$ (this .postId ()))
13
+ }))
16
14
```
17
15
18
- Check the complete documentation on [ GitHub] ( https://github.com/ngneat/query ) .
16
+ It's based on Angular signals and compatible with Angular v17+.
17
+
18
+ Check the complete documentation: [ Angular Query overview] ( https://tanstack.com/query/latest/docs/framework/angular/overview ) .
You can’t perform that action at this time.
0 commit comments