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.

6 lines (5 loc) 206 B
import { Provider } from '@angular/core'; import { UnsavedDataConfig } from './unsaved-data-config.interface'; export interface ModuleConfig extends UnsavedDataConfig { confirmService: Provider; }