ngx-cho-common
v1.0.14
Published
This library provides common utilities, models, services, and directives shared across CHO Angular applications.
Readme
NgxChoCommon
This library provides common utilities, models, services, and directives shared across CHO Angular applications.
Generated with Angular CLI version 17.3.0.
Overview
NgxChoCommon is a foundational library that contains:
- Common models and interfaces
- Utility services (error handling, session storage, etc.)
- Reusable directives
- Configuration interfaces
- Shared pipes and guards
Dependencies
This library has no dependencies on other workspace libraries and should be built first.
Installation
npm install ngx-cho-commonBuild
Important: This library should be built before any other libraries in the workspace that depend on it.
ng build ngx-cho-commonBuild artifacts will be stored in the dist/ngx-cho-common directory.
Development
Code Scaffolding
ng generate component component-name --project ngx-cho-common
ng generate service service-name --project ngx-cho-common
ng generate directive directive-name --project ngx-cho-commonNote: Always include
--project ngx-cho-commonor the component will be added to the default project.
Running Tests
ng test ngx-cho-commonPublishing
- Update version in
projects/ngx-cho-common/package.json - Build the library:
ng build ngx-cho-common --configuration production - Publish to npm:
cd dist/ngx-cho-common npm publish
Usage in Other Libraries
Other libraries in this workspace depend on ngx-cho-common:
- ngx-cho-security
- ngx-cho-components
Make sure to build ngx-cho-common first before building dependent libraries.
