- 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修煉手冊
- 操作系統實用教程(Linux版)
- Ansible權威指南
- 阿里云數字新基建系列:云原生操作系統Kubernetes
- 精通Linux內核開發
- Ubuntu Linux操作系統
- Moodle 3.x Teaching Techniques(Third Edition)
- 新手學電腦從入門到精通(Windows 10+Office 2016版)
- Delphi Programming Projects
- Django Project Blueprints
- Windows 8實戰從入門到精通(超值版)
- Windows Server 2008組網技術與實訓(第3版)
- Drupal 7 Cookbook
- Linux集群之美
- Agile IT Security Implementation Methodology