官术网_书友最值得收藏!

  • Learning Angular
  • Aristeidis Bampakos Pablo Deeleman
  • 236字
  • 2021-06-11 18:24:05

Summary

This was a long read, but this introduction to TypeScript was necessary 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 when 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 our 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 significant features we explored in this chapter. As we will see very soon, having sound knowledge of these mechanisms is paramount to understanding 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.

The next chapter will expose us to the basics of a component, how to pass data between components, and how to communicate with them. These features will allow us to put our newly gained knowledge of TypeScript into practice.

主站蜘蛛池模板: 富川| 广州市| 中卫市| 泰州市| 内丘县| 叙永县| 惠安县| 乡城县| 房产| 抚州市| 东兴市| 合水县| 黄骅市| 慈溪市| 马尔康县| 皮山县| 河曲县| 闵行区| 榕江县| 尼木县| 泸水县| 康保县| 金乡县| 邵阳县| 汤阴县| 昌宁县| 陆川县| 老河口市| 榆树市| 伊吾县| 衡东县| 乌兰县| 化州市| 乌兰县| 阳信县| 永济市| 康定县| 盘锦市| 象州县| 读书| 英德市|