Angular · Senior · Question 71 of 75
How do you keep a large Angular codebase from creating circular or wrong-direction imports between features?
- ✓Correct answer: Enforce module boundaries with lint rules (e.g. Nx tags or ESLint import rules) and public API files per feature
- 2Put everything in one shared folder
- 3Use only relative imports
Explanation
Clear layers (feature → data-access → ui → util) and enforced boundaries keep lazy chunks small and refactoring safe.