- 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.
- Kubernetes修煉手冊
- Modern Web Testing with TestCafe
- Linux集群和自動化運維
- 混沌工程:復雜系統韌性實現之道
- 深入理解eBPF與可觀測性
- 直播系統開發:基于Nginx與Nginx-rtmp-module
- Ceph分布式存儲實戰
- Windows 7應用入門與技巧
- ElasticSearch Cookbook
- AWS SysOps Cookbook
- INSTANT Galleria Howto
- Kali Linux高級滲透測試(原書第3版)
- 從零開始學安裝與重裝系統
- Implementing Domain-Specific Languages with Xtext and Xtend(Second Edition)
- 計算機應用基礎(Windows 7+Office 2010)