In this chapter, we have covered DI in other frameworks, with a special focus on Angular in its two current branches.
First, we've seen the very basics of TypeScript on which Angular 2+ is based and how its capabilities for class definitions and module loading allow the construction of JavaScript-based applications with a more object-oriented, modular approach.
Next, we went through the implementation of DI inside AngularJS (the legacy branch of Angular), still in use in more than 70 percent of Angular projects worldwide.
Finally, we explored the basics of Angular 4 (the latest version available at thetime of writing this), and how the aforementioned object orientation and its component architecture (based on annotations) allow the implementation of Dependency Injection in a very easy way.
In Chapter 11, Best Practices and Other Related Techniques, we'll cover some of the most common best practices in DI and other related techniques.