Observer: reacting to an order
Announce that something happened with the platform's EventTarget, and let any number of subscribers react.
Level Intermediate
What you will see
- One order, three reactions
- The order calls everyone
- The platform is the subject
- Subscribers, wired in one place
- One failure stays one failure
- When not to use it
Before / after
Base: observer-base-jsView the diff