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

TypeScript Crash Course

In this chapter, we will start working with TypeScript: the language Angular is written with. All the features that ECMAScript 2015 and ECMAScript 2016 provide, such as functions, classes, modules, and decorators, are already implemented in or added to the roadmap of TypeScript. Because of the extra type annotations, there are some syntactical additions compared to JavaScript.

Being already familiar with AngularJS and subsequently ES5, we'll go through a process of smooth transition to TypeScript. We'll start by introducing ES2015 and ES2016. As we mentioned previously, TypeScript is a superset of these new ECMAScript standards, which means that by learning the new versions of JavaScript you'll also learn very important bits of TypeScript. In the second half of the chapter, we'll add the extra syntax for explicit type annotations.

Later in this chapter, we will explain the extra features TypeScript provides, such as static typing and extra syntax. We will discuss the different consequences based on these features, which will help us to be more productive and less error-prone. Let's get going!

主站蜘蛛池模板: 古丈县| 和田市| 台北市| 磐石市| 梅州市| 潍坊市| 同江市| 清水县| 宣恩县| 内黄县| 巴林右旗| 建平县| 蚌埠市| 高邑县| 名山县| 英吉沙县| 普格县| 金湖县| 乐平市| 延庆县| 红安县| 邯郸市| 四川省| 天峻县| 昌邑市| 湟中县| 惠水县| 江安县| 东光县| 哈巴河县| 黄大仙区| 沁阳市| 北京市| 二手房| 涪陵区| 轮台县| 阿拉善右旗| 镇巴县| 治多县| 白山市| 海晏县|