Angular 2 Cross Modules Communication: EventAggregator

In the previous post I covered the implementation of a simple event aggregator purely to demonstrate the key concepts of cross module communication as highlighted in the very first post. We concluded that the simple event aggregator is not DRY enough hence this post. In this final implementation again will utilise Rx to provide publish and subscribe functionalities,…

Angular 2 Cross Modules Communication: Simple EventAggregator

In the previous post I started with an overview of the problem and what sort of problem event aggregators solve. I will start with what I call simple event aggregator. Actually, it doesn’t fully comply to event aggregator pattern, however the objective is to understand the mechanics of event aggregators and how loosely coupled communication amongst…

Angular 2 Cross Modules Communication: EventAggregator Overview

Angular modules are becoming pivotal building blocks in Angular 2 architecture. With Angular 2-RC5 the NgModule is the decorator that defines an Angular module class. Modularity enables us to developed loosely coupled and extensible applications that are built to last and to change. A module encompasses components, templates, services, directives, etc.. into a cohesive block of functionality. Each angular…