Get started with rxjs CDN

Apache-2.0 licensed

RxJS is a popular library for reactive programming, providing operators for manipulating observable streams.

Tags:
  • LINQ
  • FRP
  • Reactive
  • Events
  • Rx
  • RxJS

Stable version

Copied!

How to start using rxjs CDN


<!DOCTYPE html>
<html>
<head>
  <script src="https://cdn.cdnhub.io/rxjs/7.8.1/rxjs.umd.min.js"></script>
  <title>Get started with rxjs CDN - cdnhub.io</title>
</head>
<body>
  <button id="start">Start</button>
  <script>
    const button = document.getElementById('start');
    const interval$ = Rx.Observable.interval(1000);

    button.addEventListener('click', () => {
      const subscription = interval$
        .pipe(
          Rx.operators.map(x => `Value: ${x}`),
          Rx.operators.filter(x => x.includes('Value: 5'))
        )
        .subscribe(console.log);

      button.textContent = 'Stop';

      button.addEventListener('click', () => {
        subscription.unsubscribe();
        button.textContent = 'Start';
      });
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions

0.0.0-prealpha.1 0.0.0-prealpha.2 0.0.0-prealpha.3 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.15 2.1.18 2.1.2 2.1.20 2.2.10 2.2.14 2.2.15 2.2.17 2.2.2 2.2.20 2.2.21 2.2.22 2.2.24 2.2.25 2.2.26 2.2.27 2.2.28 2.2.3 2.2.7 2.3.0 2.3.1 2.3.10 2.3.11 2.3.12 2.3.13 2.3.14 2.3.16 2.3.17 2.3.18 2.3.19 2.3.2 2.3.20 2.3.21 2.3.22 2.3.23 2.3.24 2.3.25 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.10 2.4.3 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.1.0 5.0.0 5.0.0-alpha.1 5.0.0-alpha.10 5.0.0-alpha.11 5.0.0-alpha.12 5.0.0-alpha.13 5.0.0-alpha.14 5.0.0-alpha.2 5.0.0-alpha.3 5.0.0-alpha.4 5.0.0-alpha.5 5.0.0-alpha.6 5.0.0-alpha.7 5.0.0-alpha.8 5.0.0-alpha.9 5.0.0-beta.0 5.0.0-beta.1 5.0.0-beta.10 5.0.0-beta.11 5.0.0-beta.12 5.0.0-beta.2 5.0.0-beta.3 5.0.0-beta.4 5.0.0-beta.5 5.0.0-beta.6 5.0.0-beta.7 5.0.0-beta.8 5.0.0-beta.9 5.0.0-rc.1 5.0.0-rc.2 5.0.0-rc.3 5.0.0-rc.4 5.0.0-rc.5 5.0.1 5.0.2 5.0.3 5.1.0 5.1.1 5.2.0 5.2.1-smooth 5.3.0 5.3.1 5.3.2 5.3.3 5.4.0 5.4.1 5.4.2 5.4.3 5.5.0 5.5.0-beta.0 5.5.0-beta.1 5.5.0-beta.2 5.5.0-beta.3 5.5.0-beta.4 5.5.0-beta.5 5.5.0-beta.6 5.5.0-beta.7 5.5.1 5.5.10 5.5.11 5.5.12 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8 5.5.9 5.6.0-forward-compat.0 5.6.0-forward-compat.1 5.6.0-forward-compat.2 5.6.0-forward-compat.3 5.6.0-forward-compat.4 5.6.0-forward-compat.5 6.0.0 6.0.0-alpha.0 6.0.0-alpha.1 6.0.0-alpha.2 6.0.0-alpha.3 6.0.0-alpha.4 6.0.0-beta.0 6.0.0-beta.1 6.0.0-beta.2 6.0.0-beta.3 6.0.0-beta.4 6.0.0-rc.0 6.0.0-rc.1 6.0.0-smoosh.0 6.0.0-smoosh.1 6.0.0-smoosh.2 6.0.0-tactical-rc.1 6.0.0-tenacious-rc.2 6.0.0-terrific-rc.3 6.0.0-turbo-rc.4 6.0.0-uber-rc.5 6.0.0-ucandoit-rc.6 6.0.0-uncanny-rc.7 6.1.0 6.2.0 6.2.1 6.2.2 6.3.0 6.3.1 6.3.2 6.3.3 6.4.0 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.6.0 6.6.1 6.6.2 6.6.3 6.6.4 6.6.6 6.6.7 7.0.0 7.0.0-alpha.0 7.0.0-beta.14 7.0.0-beta.15 7.0.0-rc.0 7.0.0-rc.1 7.0.0-rc.2 7.0.0-rc.3 7.0.1 7.1.0 7.2.0 7.3.0 7.3.1 7.4.0 7.5.0 7.5.1 7.5.2 7.5.3 7.5.4 7.5.5 7.5.6 7.5.7 7.6.0 7.7.0 7.8.0 *** 7.8.1 8.0.0-alpha.0 8.0.0-alpha.1 8.0.0-alpha.10 8.0.0-alpha.11 8.0.0-alpha.12 8.0.0-alpha.13 8.0.0-alpha.2 8.0.0-alpha.3 8.0.0-alpha.4 8.0.0-alpha.5 8.0.0-alpha.6 8.0.0-alpha.7 8.0.0-alpha.8 8.0.0-alpha.9