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.

4 lines (3 loc) 179 B
export declare abstract class HasUnsavedDataConfirmService { abstract confirm(message: string, title?: string, ok?: string, cancel?: string): Promise<boolean> | boolean; }