© Matthew Duffield 2018
Matthew DuffieldPractical App Development with Aurelia https://doi.org/10.1007/978-1-4842-3402-0_12

12. Event Aggregation

Matthew Duffield1 
(1)
West Linn, Oregon, USA
 

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 ...

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.