- Mastering Reactive JavaScript
- Erich de Souza Oliveira
- 179字
- 2021-07-09 20:33:11
Installing RxJS
RxJS is divided into modules. This way, you can create your own bundle with only the modules you're interested in. In this book, we will always use the official bundle with all the contents from RxJS; by doing so, we'll not have to worry about whether a certain module exists in our bundle or not. So, let's follow the steps described here to install RxJS.
To install it on your server, just run the following command inside a node project:
npm i rx@4.1.0 -save
To add it to a HTML page, just paste the following code snippet inside your HTML:
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.1.0/rx.all.js">
</script>
If you're running inside a node program, you need to have the RxJS library in each JavaScript file that you want to use. To do this, add the following line to the beginning of your JavaScript file:
var Rx = require('rx');
The preceding line will be omitted in all examples, as we expect you to have added it before testing the sample code.
- pcDuino開發(fā)實(shí)戰(zhàn)
- Designing Purpose:Built Drones for Ardupilot Pixhawk 2.1
- WordPress Mobile Web Development:Beginner's Guide
- Learn Helm
- 高性能Linux服務(wù)器構(gòu)建實(shí)戰(zhàn):運(yùn)維監(jiān)控、性能調(diào)優(yōu)與集群應(yīng)用
- Java EE 8 Design Patterns and Best Practices
- 網(wǎng)絡(luò)操作系統(tǒng)管理與應(yīng)用(第三版)
- 竹林蹊徑:深入淺出windows驅(qū)動(dòng)開發(fā)
- Windows 7中文版從入門到精通(修訂版)
- 嵌入式系統(tǒng)及其應(yīng)用(第三版)
- Delphi Programming Projects
- AWS SysOps Cookbook
- Distributed Computing with Go
- 分布式高可用架構(gòu)之道
- μC/OS-III內(nèi)核實(shí)現(xiàn)與應(yīng)用開發(fā)實(shí)戰(zhàn)指南:基于STM32