Structuring components
We have already structured our Angular application by categorizing our modules based on their use and functionality, which will benefit code reusability and maintainability. However, there is still the possibility that a large number of components could be created under a specific module, which would further improve the maintainability of an application. In this section, we will discuss another strategy for building your Angular architecture at the component level.
Smart and dumb or presentation components
The most common and recommended component-level architecture for building Angular applications is the smart and dumb component architecture. In the previous section, we split the modules into different categories based on how we were using them in the application.
This architecture also offers the same concept. We will divide the components into two different types – namely, smart components and dumb or presentation components.
Let’...