一键导入
ngx-forms-save-on-exit
Save-before-leave flow: NgxSaveOnExitComponent, NgxSaveOnExitAbstractService, NgxSaveOnExitGuard from @ibenvandeveire/ngx-forms.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Save-before-leave flow: NgxSaveOnExitComponent, NgxSaveOnExitAbstractService, NgxSaveOnExitGuard from @ibenvandeveire/ngx-forms.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Template directives ngxIsAuthenticated, ngxHasFeature, ngxHasPermission and impure pipes from @ibenvandeveire/ngx-authentication.
Route guards from @ibenvandeveire/ngx-authentication: NgxIsAuthenticatedGuard, NgxHasFeatureGuard, NgxHasPermissionGuard. Use with NgxAuthenticatedRoute data.
NgxAuthenticatedHttpClient and provideNgxAuthenticationConfiguration httpClientConfiguration. Use for base URL, withCredentials, authenticated interceptors, and download helper.
NgxAuthenticationAbstractService state: user$, session$, metadata$, hasFeature, hasPermission, global features. Use after provideNgxAuthenticationConfiguration.
Bootstrap @ibenvandeveire/ngx-authentication with provideNgxAuthenticationConfiguration and NgxAuthenticationAbstractService. Use when wiring sign-in/out and auth types.
Angular wrapper for CookieConsent V3 and cookie helpers from @ibenvandeveire/ngx-cookies. Use for setupCookiesHandler, consent observables, set/get/remove cookie, or *hasCookie directive.
| name | ngx-forms-save-on-exit |
| description | Save-before-leave flow: NgxSaveOnExitComponent, NgxSaveOnExitAbstractService, NgxSaveOnExitGuard from @ibenvandeveire/ngx-forms. |
| Method | Purpose |
|---|---|
isDirty() | Triggers guard/service when true |
isValid() | Branch valid vs invalid unsaved exit |
allowBeforeUnloadHandler: true — browser tab close warning (off by default).
handleDirtyState(component) — custom UX (toast, modal, etc.). Root or route-level provider.
Optional bypassSaveOnExit() — skip guard for specific routes.
On route: component extends NgxSaveOnExitComponent + service provided → blocks navigation when dirty.