Chapter 5: Structure an Angular App
We have reached a point in our journey where we can successfully develop more complex applications by nesting components within other components, in a sort of component tree. However, bundling all our business logic into a single component is not the way to go. Our application might become unmaintainable very soon. Later in this chapter, we'll investigate the advantages that Angular's dependency management mechanism can bring to the game to overcome such problems.
In this chapter, we will learn how to build application architectures based on trees of components and organize them into modules. We will also learn about the new Angular dependency injection mechanism, which helps us to declare and consume our dependencies across the application with minimum effort and optimal results. By the end of this chapter, you will be able to create an Angular application that is correctly structured to enforce separation of concerns using modules...