@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.
10 lines (9 loc) • 508 B
TypeScript
import { ModuleWithProviders } from '@angular/core';
import { ModuleConfig } from './module-config';
import * as i0 from "@angular/core";
export declare class HasUnsavedDataModule {
static config(config: ModuleConfig): ModuleWithProviders<HasUnsavedDataModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<HasUnsavedDataModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<HasUnsavedDataModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<HasUnsavedDataModule>;
}