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

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

主站蜘蛛池模板: 镇巴县| 余庆县| 平和县| 江安县| 团风县| 囊谦县| 鸡泽县| 新源县| 保亭| 永济市| 舞钢市| 湘潭市| 常宁市| 远安县| 当阳市| 天水市| 南开区| 霸州市| 贺兰县| 耒阳市| 洛扎县| 阜阳市| 盐边县| 巴林左旗| 海晏县| 新沂市| 信丰县| 龙口市| 合山市| 宣汉县| 泗洪县| 东莞市| 五指山市| 普洱| 察哈| 静海县| 板桥市| 宁安市| 微山县| 奉新县| 郓城县|