Event Dispatch in Angular Note

Event Dispatch in Angular

Angular's new event delegation system, inspired by Angular and Wiz, enables Event Dispatch, capturing events before hydration. This prevents unresponsive UI elements and improves user experience. Event Dispatch uses JSAction, a battle-tested library used by Google applications. By enabling Event Dispatch, Angular applications can stop dropping events before hydration and allow user interaction upon page load. This is a crucial step towards finer-grained hydration, reducing the amount of JavaScript in the hydration critical path. Deferrable Views will be lazily hydrated on the server to minimize the wait time for event responses. Future blog posts will provide details on enabling this feature through public APIs. This initiative lays the foundation for Angular's resumability, as offered by Wiz.