- 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.
- Linux運維之道(第3版)
- 蘋果電腦玩全攻略 OS X 10.8 Mountain Lion
- 白話區(qū)塊鏈
- 操作系統(tǒng)基礎(chǔ)與實踐:基于openEuler平臺
- Linux操作系統(tǒng)應(yīng)用編程
- Microsoft Operations Management Suite Cookbook
- Learning Bootstrap
- 巧學(xué)活用Windows 7
- 完美應(yīng)用RHEL 8
- 操作系統(tǒng)分析
- Advanced Infrastructure Penetration Testing
- UI設(shè)計手繪表現(xiàn)從入門到精通
- Agile IT Security Implementation Methodology
- Getting Started with UDK
- 鴻蒙HarmonyOS應(yīng)用開發(fā)從入門到精通