Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

Commit b97e1ea

Browse files
author
Your Name
committed
introduction to reactive programming
1 parent 2c461ef commit b97e1ea

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/app/browser-event-experiments/browser-event-experiments.component.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export class BrowserEventExperimentsComponent implements OnInit {
1616

1717
this.hoverSection.addEventListener('mousemove', onMouseMove);
1818

19+
this.hoverSection.addEventListener('click', onClick);
20+
1921

2022
}
2123

@@ -28,6 +30,26 @@ export class BrowserEventExperimentsComponent implements OnInit {
2830

2931
}
3032

33+
function onClick(ev: Event) {
34+
console.log("click", ev);
35+
}
36+
37+
3138
function onMouseMove(ev: MouseEvent) {
32-
console.log(ev);
33-
}
39+
console.log("mousemove",ev);
40+
}
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+

0 commit comments

Comments
 (0)