Implementing the Mediator Design Pattern in Angular 2 – Yakov Fain’s Blog

  • Who’s the someone?Ain’t no business of the component.
  • The mediator design pattern allows you to arrange component communications via “the man in the middle” so a component A never communicates with the component B directly.
  • Let whoever needs the data listen to the events from this component.

Read the full article, click here.


@MarcelChastain: “Implementing the Mediator Design Pattern in Angular 2 via @ngnewsletter
#angularjs #javascript #js”


In any component-based framework you’ll need to implement component communications. The main principle is that components should be loosely coupled hence reusable hence testable. The mediator design pattern allows you to arrange component communications via “the man in the middle” so a component A never communicates with the component B directly. If a component needs…


Implementing the Mediator Design Pattern in Angular 2 – Yakov Fain’s Blog

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.