TypeScript 2x for Angular Developers
暫譯: Angular 開發者的 TypeScript 2x 實戰指南

Christian Nwamba

  • 出版商: Packt Publishing
  • 出版日期: 2017-12-08
  • 定價: $1,480
  • 售價: 6.0$888
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Paperback
  • ISBN: 1786460556
  • ISBN-13: 9781786460554
  • 相關分類: AngularJavaScriptTypeScript
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Key Features

  • Leverage the power of TypeScript for developing large-scale Angular apps;
  • Take advantage of the cutting edge features of TypeScript 2.x for building high performing, maintainable applications;
  • Explore TypeScript implementation of modules, classes, and annotations with Angular components

Book Description

TypeScript is the default language for building Angular applications from Google. TypeScript 2.0 adds optional static types, classes, and modules to JavaScript, to enable great tooling and better structuring of large JavaScript applications.

This book will teach you how to leverage the exciting features of TypeScript while working on Angular projects to build scalable, data intensive web applications. You will begin with setting up and installing Typescript followed by compiling it with JavaScript. You will then learn to write simple JavaScript expressions with Typescript. You will then go through some built in TypeScript types and accessors. Further you will build web components using TypeScript Interfaces and Decorators. You will go through the Angular form module which will enable you to write predicatable typed forms with Typescript and learn to use typed DOM events. You will also build a single page application using the Router Module. Lastly, you will go through the final building block by consuming API data with Angular's HTTP Module and handle responses with RxJS Observables. At the end of the book, you will go through different testing and debugging techniques.

What you will learn

  • Move from loose types to predictable strict types
  • Write self-documented API methods and data structures
  • Understand Custom Generic Types for complex data structures
  • Implement Contract with Interfaces
  • Enhance Dependency Injection in Angular via Class Constructors
  • Explore TypeScript Advanced Types
  • Build Interactive Web Apps with Angular & TypeScript

商品描述(中文翻譯)

**主要特點**

- 利用 TypeScript 的強大功能來開發大型 Angular 應用程式;
- 利用 TypeScript 2.x 的尖端功能來構建高效能、可維護的應用程式;
- 探索 TypeScript 在 Angular 元件中的模組、類別和註解的實作。

**書籍描述**

TypeScript 是 Google 用於構建 Angular 應用程式的預設語言。TypeScript 2.0 為 JavaScript 增加了可選的靜態類型、類別和模組,以便提供優秀的工具支援和更好的大型 JavaScript 應用程式結構。

本書將教您如何在 Angular 專案中利用 TypeScript 的精彩功能來構建可擴展的、數據密集型的網頁應用程式。您將從設置和安裝 TypeScript 開始,然後將其與 JavaScript 編譯。接著,您將學習如何使用 TypeScript 編寫簡單的 JavaScript 表達式。然後,您將了解一些內建的 TypeScript 類型和存取器。此外,您將使用 TypeScript 介面和裝飾器來構建網頁元件。您將學習 Angular 表單模組,這將使您能夠使用 TypeScript 編寫可預測的類型表單,並學習使用類型化的 DOM 事件。您還將使用路由模組構建單頁應用程式。最後,您將通過使用 Angular 的 HTTP 模組來消耗 API 數據並使用 RxJS 可觀察物件處理回應,來了解最終的構建區塊。在書的最後,您將學習不同的測試和除錯技術。

**您將學到的內容**

- 從鬆散類型轉向可預測的嚴格類型
- 編寫自我文檔的 API 方法和數據結構
- 理解複雜數據結構的自定義泛型類型
- 使用介面實現合約
- 通過類別構造函數增強 Angular 的依賴注入
- 探索 TypeScript 的進階類型
- 使用 Angular 和 TypeScript 構建互動式網頁應用程式