This document discusses using Nx for modular monolith architecture in Angular applications. It introduces Nx as a tool for managing monorepos, and describes how it can enforce module boundaries and shared dependencies. The document also presents improved patterns for organizing large enterprise Angular applications in a monorepo, with separate areas for UI, data access, models, routes, and APIs between domains.
38. ng-journal.com
ng-journal.com
Problems with the traditional
Enterprise Monorepo Pattern
⢠UI is allowed to inject services
⢠violating the âsmart vs dumb componentâ principle
⢠Utils are not allowed to use models
⢠but needed for type predicates
⢠Where to put routes?