Spec-Zone.ru › Angular

withEventReplay

Enables support for replaying user events (e.g. clicks) that happened on a page before hydration logic has completed. Once an application is hydrated, all captured events are replayed and relevant event listeners are executed.

provideClientHydration

API

function withEventReplay(): HydrationFeature<HydrationFeatureKind.EventReplay>;
@returnsHydrationFeature<HydrationFeatureKind.EventReplay>

Usage Notes

Basic example of how you can enable event replay in your application when bootstrapApplication function is used:

bootstrapApplication(App, {
  providers: [provideClientHydration(withEventReplay())]
});

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/platform-browser/withEventReplay

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API