Summary
In this chapter, we studied the Angular modules in detail and how we can use them for the organization and performance of our applications. We learned the difference between Angular modules and JavaScript modules, and we saw each attribute of a module definition and the types that we can create in the project. Finally, we learned how to avoid the single module app anti-pattern and how to create the SharedModule
.
We reiterated our example application to use lazy loading of bundles, which demonstrates that good module organization reflects performance and fluidity for our users. Now, you are able to organize your application in such a way that it can scale and increase in complexity and features without compromising the maintainability of the project.
In the next chapter, we will learn how to use TypeScript effectively and productively for our Angular projects.