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

installation.md

47 lines721 Bytes

1---
2id: installation
3title: Installation
4---
5​
6_Angular Query is compatible with Angular v20.1 and higher._
7​
8### Angular CLI
9​
10```sh
11ng add @tanstack/angular-query
12```
13​
14This installs the package and devtools, then configures an SSR-safe `QueryClient` factory with
15`withDevtools()`.
16​
17### Package managers
18​
19```sh
20npm i @tanstack/angular-query
21```
22​
23or
24​
25```sh
26pnpm add @tanstack/angular-query
27```
28​
29or
30​
31```sh
32yarn add @tanstack/angular-query
33```
34​
35or
36​
37```sh
38bun add @tanstack/angular-query
39```
40​
41If you want Angular Query devtools, install the standalone devtools package as well:
42​
43```sh
44npm i @tanstack/angular-query-devtools
45```
46​
47> Want to try it first? See the [simple](./examples/simple) or [basic](./examples/basic) example.