TypeScript 2x for Angular Developers

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的尖端功能建立高效能、易於維護的應用程式;

  • 探索Angular元件中模組、類別和註解的TypeScript實作。

書籍描述

TypeScript是Google用於建立Angular應用程式的預設語言。TypeScript 2.0在JavaScript中新增了可選的靜態類型、類別和模組,以提供強大的工具和更好的結構化大型JavaScript應用程式的能力。

本書將教導您如何在Angular專案中充分利用TypeScript的令人興奮的功能,以建立可擴展且資料密集的網頁應用程式。您將從設定和安裝TypeScript開始,然後將其編譯為JavaScript。接著,您將學習使用TypeScript編寫簡單的JavaScript表達式。然後,您將瀏覽一些內建的TypeScript類型和存取器。接著,您將使用TypeScript介面和裝飾器建立網頁元件。您將透過Angular表單模組撰寫可預測型別的表單,並學習使用型別化的DOM事件。您還將使用路由模組建立單頁應用程式。最後,您將透過Angular的HTTP模組消耗API資料,並使用RxJS Observables處理回應。在本書的最後,您將學習不同的測試和除錯技巧。

您將學到什麼


  • 從鬆散型別轉向可預測的嚴格型別

  • 撰寫自我記錄的API方法和資料結構

  • 了解複雜資料結構的自訂泛型型別

  • 使用介面實作契約

  • 透過類別建構函式增強Angular的相依性注入

  • 探索TypeScript的進階型別

  • 使用Angular和TypeScript建立互動式網頁應用程式