一键导入
ngx-forms-form-accessor
FormAccessor, DataFormAccessor, and createAccessorProviders from @ibenvandeveire/ngx-forms for reusable ControlValueAccessor components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
FormAccessor, DataFormAccessor, and createAccessorProviders from @ibenvandeveire/ngx-forms for reusable ControlValueAccessor components.
用 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-form-accessor |
| description | FormAccessor, DataFormAccessor, and createAccessorProviders from @ibenvandeveire/ngx-forms for reusable ControlValueAccessor components. |
Install: npm install @ibenvandeveire/ngx-forms.
Abstract CVA layer with defaults for writeValue, validate, setDisabledState, markAsTouched, markAsPristine.
export class MyComponent extends FormAccessor<FormDataType, FormControlType> {
initForm(): FormGroup {
return new FormGroup({ foo: new FormControl(), bar: new FormControl() });
}
}
Third generic InternalFormDataType + optional mappers:
onWriteValueMapper — API → form UIonChangeMapper — form UI → APIdisableFields input — disable specific keys; optional emitValueWhenDisableFieldsUsingInput.
First setDisableState ignored by default (Angular always calls it). Set skipInitialSetDisable: false to opt out.
data input drives initForm (e.g. dynamic control lists).
Registers NG_VALUE_ACCESSOR + NG_VALIDATORS. Prefer over manual providers.
BaseFormAccessor with useExisting: forwardRef(…).updateValueAndValidity() — recursive on nested accessors.BaseFormAccessor when using createAccessorProviders.