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

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!

主站蜘蛛池模板: 河西区| 镇原县| 安阳县| 绿春县| 勃利县| 安平县| 浏阳市| 洛宁县| 长白| 徐水县| 山西省| 湛江市| 霞浦县| 木兰县| 清原| 丰县| 淳安县| 仙游县| 中西区| 定陶县| 红桥区| 十堰市| 若尔盖县| 唐河县| 梁平县| 昌黎县| 太仓市| 清新县| 福贡县| 织金县| 茶陵县| 辽中县| 页游| 兴海县| 长白| 雷山县| 屏边| 达拉特旗| 克什克腾旗| 万年县| 顺昌县|