Summary

This was definitely a long read, but this introduction to TypeScript was absolutely necessary in order to understand the logic behind many of the most brilliant parts of Angular. It gave us the chance to not only introduce the language syntax, but also explain the rationale behind its success as the syntax of choice for building the Angular framework. We reviewed its type architecture and how we can create advanced business logic designing functions with a wide range of alternatives for parameterized signatures, and we even discovered how to bypass issues related to scope by using the powerful new arrow functions. Probably the most relevant part of this chapter encompassed the overview of classes, methods, properties, and accessors and how we can handle inheritance and better application design through interfaces. Modules and decorators were some other major features explored in this chapter and, as we will see very soon, having a sound knowledge of these mechanisms is paramount to understand how dependency injection works in Angular.

With all this knowledge at our disposal, we can now resume our investigation of Angular and confront the relevant parts of component creation, such as style encapsulation, output formatting, and so on with confidence. Chapter 4, Implementing Properties and Events in Our Components, will expose us to advanced template creation techniques, data-binding techniques, directives, and pipes. All these features will allow us to put into practice all this newly gained knowledge of TypeScript.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset