Skip to content

Commit 11b336e

Browse files
authored
docs: link angular adapter (#6796)
1 parent 81ef31f commit 11b336e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/framework/react/community/angular-query.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ id: angular-query
33
title: 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).

0 commit comments

Comments
 (0)