Advantages of Angular Library in Architectural Design
Piyali Das
11+ yrs | Angular (Core + Material UI + AgGrid) | Nx Monorepo | NGRX | RXJS | GraphQL | TypeScript | JavaScript | SASS
Application Strategic Design
- Decompose the big application into smaller libraries
- Smaller libraries are easily maintainable than big application
- Libraries are reusable. You can use these libraries in another applications
- All libraries will share same dependency of angular version. Version mismatch will not create any problems.
Suppose in E-commerce Application, we can break this big application into some small libraries like :
We can reuse these libraries in different projects. We can call them Feature Libraries.
Another one is Utility Libraries which contains common utilities, services used by many libraries.
As per my E-Commerce application, i can create custom libraries like :
- Dynamic Form
- Validation
- Timeout-dialog
- Slider
- Modal-dialog