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) 197 B
import { InjectionToken } from '@angular/core'; import { UnsavedDataConfig } from './unsaved-data-config.interface'; export declare const UNSAVED_DATA_CONFIG: InjectionToken<UnsavedDataConfig>;