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

  • 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.

主站蜘蛛池模板: 赤城县| 广宗县| 安达市| 无棣县| 根河市| 碌曲县| 三门峡市| 宣武区| 丰都县| 休宁县| 西盟| 辽源市| 金门县| 民县| 小金县| 玛纳斯县| 闸北区| 兴城市| 牟定县| 松江区| 金溪县| 含山县| 三原县| 女性| 股票| 贵南县| 竹北市| 内丘县| 河西区| 托克逊县| 望都县| 英吉沙县| 萨嘎县| 定安县| 石屏县| 应城市| 通州市| 锡林郭勒盟| 福鼎市| 金湖县| 萨嘎县|