© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.