UNPKG

@kovalenko/has-unsaved-data

Version:

Provides a router guard preventing route deactivation, if the component\`s method decorated with `@CheckUnsavedData()` returns `true`. Also it prevents the window to be unloaded.

7 lines (6 loc) 125 B
export interface UnsavedDataConfig { title?: string; message?: string; ok?: string; cancel?: string; }