- Mastering Reactive JavaScript
- Erich de Souza Oliveira
- 54字
- 2021-07-09 20:33:08
Subscribing
We call subscribing to an observable an act of adding a function to be called when an event happens. Using bacon.js, we can be notified when a value is emitted (the onValue(), log(), and assign() methods), when an error has occurred (the onError() method), or when our observable is closed (at the end).