# @coreng/angular-core

> This library defines all shared components, dtos, classes, enums, services... for all APS angular apps.

Latest version **0.0.1** (published 2021-06-14) · 0 weekly downloads

## Install

```sh
npm install @coreng/angular-core
pnpm add @coreng/angular-core
yarn add @coreng/angular-core
bun add @coreng/angular-core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-06-14 |
| First published | 2021-06-14 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 322.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | phongcao3091998 |

## Links

- npm: https://www.npmjs.com/package/@coreng/angular-core
- npm.io page: https://npm.io/package/@coreng/angular-core

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) 2.2.0

## Recent versions

- 0.0.1 (latest) — 2021-06-14

## README

# @coreng/aps-admin-share

This library defines all shared components, dtos, classes, enums, services... for all APS angular apps.

## Structure

- <feature> (dir): shared framework feature.
  - feature.dto.ts
  - feature.model.ts
  - feature.component.ts
  - feature.service.ts
  - feature.module.ts
- constants (dir): shared constants.
- directives (dir).
- enums (dir).
- helpers (dir): shared helper classes (stateful classes).
- pipes (dir): shared aps-admin pipes.
- services (dir): shared aps-admin common services.
- utils (dir): shared static utility classes.
- index.ts: export \* from internal folders.

## Difference between model and dto

- Model is a class, you can pass an interface type to the constructor as data.
- Dto (Data Transfer Object) is an interface. E.g., request, response

## Difference between helper and utils

- A Utility class is understood to only have static methods and be stateless. You would not create an instance of such a class.
- A Helper can be a utility class or it can be stateful or require an instance be created. I would avoid this if possible.

## Rules for index.ts files

- `folder/index.ts` is just export internal class, interface, services, module from folders.

```
export { AModel } from './models/a.model';
export { AModule } from './a.module.ts';
```

- `src/index.ts` is just export from folders

```
export * from 'a-folder';
export * from 'b-folder';
```

---
_Source: https://npm.io/package/@coreng/angular-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
