6
Managing Complex Tasks with Services
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.
In this chapter, we’ll investigate the advantages that Angular’s dependency management mechanism can bring to the game to overcome such problems. We will learn how to use the Angular Dependency Injection (DI) mechanism 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 ...
Get Learning Angular - Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.