import { Subject } from 'plain-observable';
const source = new Subject<number>();
const unregister1 = source.register({
update(value) {
console.log('1',value);
}
})
source.register({
update(value) {
console.log('2',value);
}
});
source.notify(1)
unregister1();
source.notify(2)
-
Notifications
You must be signed in to change notification settings - Fork 0
ajuni880/plain-observable
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published