Synchronous vs. Asynchronous EventEmitters In Angular 2 Beta 14

added by JavaScript Kicks
4/16/2016 10:09:33 PM

1243 Views

When I was trying to come up with a way to implement "controlled inputs" in Angular 2 Beta 11, I realized that the EventEmitter() class, used to power directive output bindings, internally emitted its values asynchronously by default. After looking at the documentation, I saw that I could override this asynchronous behavior by passing in "false" as an EventEmitter() constructor argument.


0 comments