Skip to content

Commit adf541a

Browse files
committed
updated project to rx6
1 parent 5697af0 commit adf541a

File tree

9 files changed

+4638
-3204
lines changed

9 files changed

+4638
-3204
lines changed
File renamed without changes.
File renamed without changes.

dist/main.js

Lines changed: 0 additions & 1163 deletions
This file was deleted.

dist/index.html renamed to index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33

44
<head>
55
<meta charset="UTF-8">
6-
<title>rxjs typescript starterkit</title>
6+
<title>rxjs typescript scratchpad</title>
77
<link rel="stylesheet" href="main.css" />
88
</head>
99

1010
<body>
11-
<img class="rxjs-logo" width="100" src="assets/rxjs.png">
12-
<script src="main.js"></script>
11+
<img class="rxjs-logo" width="100" src="rxjs.png">
1312
</body>
1413

1514
</html>

main.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
import {testObservable} from "./src/observable";
1+
import { interval } from 'rxjs';
2+
import { scan } from 'rxjs/operators/';
23

3-
class iWork {
4-
constructor() {
5-
console.log("I work, whoohoo");
6-
}
7-
}
4+
// ****
5+
//
6+
// Welcome to your rxjs scratch pad 🤗
7+
//
8+
// ****
89

9-
new iWork();
10-
new testObservable();
10+
var source = interval(2000);
11+
12+
source
13+
.pipe(scan((rotation, count) => count + 1, 0))
14+
.subscribe(x => console.log(`rxjs logo spun ${x} times`));

0 commit comments

Comments
 (0)