Synchronous vs. Asynchronous EventEmitters In Angular 2 Beta 14

  • // I handle the valueChange event from the counter component.
  • // have to emit a valueChange event rather than updating the
  • Notice that, with an asynchronous EventEmitter(), the output binding’s change handler isn’t invoked until after the component’s ngAfterContentChecked() and ngAfterViewChecked() life-cycle event handlers have been invoked.

Read the full article, click here.


@JavaScriptKicks: “Synchronous vs. Asynchronous EventEmitters In Angular 2 Beta 14 by @bennadel #javascript #angularjs”


Ben Nadel demonstrates that an output binding EventEmitter(), in Angular 2 Beta 14, can be made to be synchronous. And, how this affects the timing of the output binding event handler in the context of life-cycle digest events.


Synchronous vs. Asynchronous EventEmitters In Angular 2 Beta 14

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.