Skip to content

Commit 7acc332

Browse files
authored
Create UsageObserver.js
1 parent 71b1869 commit 7acc332

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const observer = new Observer();
2+
observer.subscribe((data) => {
3+
console.log('Sign up for the fired module one:', data);
4+
});
5+
observer.subscribe((data) => {
6+
console.log('Sign up for the fired module two:', data);
7+
});
8+
observer.notify({ someData: 'Hello' });

0 commit comments

Comments
 (0)