一键导入
ngx-store-rxjs
NgRx boilerplate reduction with createStoreAssets, handleEffect, dispatchDataToStore, and NgxStoreService from @ibenvandeveire/ngx-store.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
NgRx boilerplate reduction with createStoreAssets, handleEffect, dispatchDataToStore, and NgxStoreService from @ibenvandeveire/ngx-store.
用 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-store-rxjs |
| description | NgRx boilerplate reduction with createStoreAssets, handleEffect, dispatchDataToStore, and NgxStoreService from @ibenvandeveire/ngx-store. |
Install: npm install @ibenvandeveire/ngx-store (+ NgRx). Works with existing NgRx; utils are opt-in.
Define slice type, then generate actions/reducers/selectors per sub-slice:
type ExampleStoreAssets = {
channel: BaseStoreAssets<DataType>;
videos: EntityStoreAssets<DataType>;
};
export const { actions, reducers, selectors } = createStoreAssets<ExampleStoreAssets>('slice', [
{ subSlice: 'channel', generator: createBaseStoreAssets<DataType> },
{ subSlice: 'videos', generator: createEntityAdapterStoreAssets<DataType> },
]);
Base: set, loading, error, clear, effects.set + selectors select, selectLoading, selectError, selectErrorMessage.
Entity: adds add, update, delete, effect triggers + selectAll.
Second generic on assets types effect payload shapes.
createEffect(() =>
this.actions$.pipe(
handleEffect<User[]>(actions.users, 'set', this.userService.fetchUsers),
),
);
Auto loading/error around HTTP:
return dispatchDataToStore(actions.channel, this.http.get<DataType>('…'), this.store);
Extend with super(store, selectors) → state object with $ observables per sub-slice (isCompleted$, isCompletedLoading$, …).
Methods: selectFromStore, selectLoadingFromStore, selectErrorFromStore, selectErrorMessageFromStore.