Sometimes you have your screen layout in a certain way that data binding alone does not work. Perhaps you have a custom element in one location and a view in another. A common scenario when building out complex screens is to implement a shell that in turn hosts a specific area where the router will render your views. If you wanted to update your shell when a new view is loaded, this can be cumbersome. Luckily, one way to accomplish this is by using the Event Aggregator. We can use the Event Aggregator to send messages across view models and then perform any actions ...
12. Event Aggregation
Get Practical App Development with Aurelia: Leverage the Power of Aurelia to Build Personal and Business Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.