Events

Event handling between components in pub-sub manner. This example presents usage of EventEmitter class with $on and $emit functions.




<div class="publish">
<input class="publish__message" type="text"/>
<button class="publish__button">SEND</button>
</div>
<ul class="subscribe"></ul>