Peer Events in Angular 2

7 views
Skip to first unread message

Tim Consolazio

unread,
Jan 11, 2017, 6:21:29 AM1/11/17
to Angular 2
You hear it everywhere; if a component has some peers, like in a menubar that contains a bunch of button components, how can I dispatch an event from one of the buttons such that all the buttons hear it, and receive a data payload?

It's all about Input and EventEmitter, here's a new article that shows how simple it can be:

Reply all
Reply to author
Forward
0 new messages