Skip to content

Commit

Permalink
Uses RxJS from an HTML page (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
olange committed Feb 11, 2019
1 parent d8546b3 commit 121fab4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions experiments/01-rxjs-intro/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<html>
<head>
<meta charset="utf-8" />
<title>Experiment 01 · First steps with RxJS</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="First steps with RxJS." />
<script src="./node_modules/rxjs/bundles/rxjs.umd.min.js" crossorigin></script>
</head>
<body>
<noscript>Please enable JavaScript to view this website.</noscript>
<script type="module" src="./index.js" crossorigin></script>
</body>
</html>
2 changes: 1 addition & 1 deletion experiments/01-rxjs-intro/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Observable } = require( "rxjs");
const { Observable } = rxjs;

const foo = new Observable(subscriber => {
console.log('Hello');
Expand Down
2 changes: 1 addition & 1 deletion experiments/01-rxjs-intro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "First steps with RxJS",
"main": "index.js",
"scripts": {
"start": "node index.js",
"start": "python -m SimpleHTTPServer",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down

0 comments on commit 121fab4

Please sign in to comment.