Architectural Considerations for Angular Applications
When it comes to application architecture, my approach is holistic: it's not just about the application design, but the things around the application -- for example, unit tests and linting -- that can help produce a solid application. Here are some of my thoughts for creating successful Angular applications, though many of these apply to other sorts of applications as well. The goal is to design something in such a way that it's easy to maintain, easy to enhance, avoids pitfalls, and most importantly, works as intended . Here we go! 1. Use those spec files Angular was designed from the start with unit testing in mind. But a lot of Angular developers I've spoken to don't use the spec files the CLI creates for us. Having good code coverage is important, and it's worth taking the time to write those unit tests. For more information on how unit testing has helped me write better software, check out this post. 2. Organize code into judicious feature modules with lazy-...