Installation Instructions
Here are different ways you can install RxJs:
ES6 via npm
To import the entire core set of functionality:
To import only what you need using pipeable operators:
- See Pipeable Operator Documentation for more information about pipeable operator.
To use with globally imported bundle:
CommonJS via npm
If you receive an error like error TS2304: Cannot find name 'Promise' or error TS2304: Cannot find name 'Iterable' when using RxJS you may need to install a supplemental set of typings.
- For typings users:
-
If you're not using typings the interfaces can be copied from /es6-shim/es6-shim.d.ts.
-
Add type definition file included in tsconfig.json or CLI argument.
All Module Types (CJS/ES6/AMD/TypeScript) via npm
To install this library via npm version 3, use the following command:
If you are using npm version 2 before this library has achieved a stable version, you need to specify the library version explicitly:
CDN
For CDN, you can use unpkg. Just replace version with the current version on the link below:
For RxJS 5.0.0-beta.1 through beta.11: https://unpkg.com/@reactivex/rxjs@version/dist/global/Rx.umd.js
For RxJS 5.0.0-beta.12 and higher: https://unpkg.com/@reactivex/rxjs@version/dist/global/Rx.js
For RxJS 6.0.0 and higher: https://unpkg.com/@reactivex/rxjs@version/dist/global/rxjs.umd.js