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
33title : Angular Query
44---
55
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 .
77
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+ }))
1614```
1715
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