Modular Javascript #4 - PubSub Javascript Design Pattern

Last video, we covered the revealing module pattern - where we expose an API allowing modules to talk to each other. This works well for smaller amounts of modules, but can have issues when many modules need to talk to each other. Here’s the pubsub code I’m using in this example: In this video, we’ll cover the pubsub design pattern (publish/subscribe), which allows us to decouple our modules. Once integrated with our pubsub module, they can
Back to Top