Angular 2 Cookbook - Second Edition

Matt Frisbie

  • 出版商: Packt Publishing
  • 出版日期: 2017-01-20
  • 定價: $1,500
  • 售價: 6.0$900
  • 語言: 英文
  • 頁數: 464
  • 裝訂: Paperback
  • ISBN: 1785881922
  • ISBN-13: 9781785881923
  • 相關分類: Angular
  • 立即出貨 (庫存 < 3)

商品描述

About This Book

From the author of the bestselling AngularJS Web Application Development Cookbook, Angular 2 Cookbook is the newest edition of Packt's Angular cookbook series.

Book Features

 

 

  • 70+ extensive examples: Each recipe provides you with strategies to face every challenge in Angular 2 head on
  • All code from the latest version: Covers no legacy material from the outdated Angular release candidates; all code up-to-date with the latest release of Angular 2.4
  • Webpack application organization: Includes instructions on how to build applications with Webpack, SystemJS, and Angular CLI
  • Companion website links: Each recipe provides a unique URL on the book's companion website; the page includes links to a working example on Plunker, the recipe's source code on GitHub, and various related resources. The companion website has no login, and is free to use.
  • Immediately experiment with working code: Almost every recipe in the book has a link on the companion site to a working Plunker. Visit the link and start experimenting with Angular 2 right away - no setup or installation required.
  • Step-by-step examples: All the code in the book is explicitly written out, and every piece of code shown is a step towards building a simple working example. Syntax, design decisions, and refactoring are all fully explained in each recipe.

 


Major Topics Covered In Depth:

 

 

 

 

  • Upgrading from Angular 1 to Angular 2
  • Components
  • Directives
  • Template-Driven Forms
  • Reactive Forms
  • Promises
  • RxJS Observables
  • Angular 2 Component Router
  • Services
  • Dependency Injection
  • Angular 2 Modules with NgModule
  • TypeScript Setup and Compilation
  • SystemJS Application Setup
  • Webpack Application Setup
  • Angular CLI Application Setup
  • Unit Testing with Karma and Jasmine
  • End-to-End Testing with Protractor
  • NgZone
  • Angular 2 Renderer
  • Ahead-of-Time (AOT) Compilation
  • Lazy Loaded Applications

 


Who This Book Is For

This book is for developers who are competent with JavaScript and are looking to dive headfirst into the TypeScript edition of Angular 2. This book is also geared towards developers with experience in Angular 1 who are looking to make the transition.

In Detail

Angular 2 introduces an entirely new way to build applications. It wholly embraces all the newest concepts that are built into the next generation of browsers, and it cuts away all the fat and bloat from Angular 1. This book plunges directly into the heart of all the most important Angular 2 concepts for you to conquer. In addition to covering all the Angular 2 fundamentals, such as components, forms, and services, it demonstrates how the framework embraces a range of new web technologies such as ES6 and TypeScript syntax, Promises, Observables, and Web Workers, among many others.

This book covers all the most complicated Angular concepts and at the same time introduces the best practices with which to wield these powerful tools. It also covers in detail all the concepts you'll need to get you building applications faster. Oft-neglected topics such as testing and performance optimization are widely covered as well. A developer that reads through all the content in this book will have a broad and deep understanding of all the major topics in the Angular 2 universe.

Style and approach

This book follows a cookbook approach--each recipe presents a unique problem to which the solution is presented in a clear, concise, and manner step-by-step manner. With practical hands-on guidance in each and every recipe, you'll be able to get to grips with the concepts.

 

 

商品描述(中文翻譯)

關於本書

《Angular 2 Cookbook》是Packt出版社Angular烹飪書系列的最新版本,作者是暢銷書《AngularJS Web Application Development Cookbook》的作者。

書籍特色

- 70多個廣泛的範例:每個範例都提供了應對Angular 2中的各種挑戰的策略。
- 最新版本的所有代碼:不包含舊版Angular的遺留內容;所有代碼都是基於最新版本的Angular 2.4。
- Webpack應用組織:包括使用Webpack、SystemJS和Angular CLI構建應用的指示。
- 附帶網站連結:每個範例都提供了一個獨特的URL,連接到書籍的附帶網站;該頁面包含了Plunker上的工作範例連結、GitHub上的範例代碼連結以及其他相關資源。附帶網站無需登錄,免費使用。
- 立即實驗工作代碼:書中幾乎每個範例都有一個指向Plunker上工作範例的連結。點擊連結,立即開始使用Angular 2進行實驗 - 無需設置或安裝。
- 逐步範例:書中的所有代碼都有明確的寫出,每段代碼都是構建一個簡單工作範例的步驟。每個範例都詳細解釋了語法、設計決策和重構過程。

主要深入探討的主題:

- 從Angular 1升級到Angular 2
- 組件
- 指令
- 模板驅動表單
- 响應式表單
- Promises
- RxJS Observables
- Angular 2組件路由
- 服務
- 依賴注入
- 使用NgModule的Angular 2模塊
- TypeScript設置和編譯
- SystemJS應用程序設置
- Webpack應用程序設置
- Angular CLI應用程序設置
- 使用Karma和Jasmine進行單元測試
- 使用Protractor進行端到端測試
- NgZone
- Angular 2渲染器
- 預編譯(AOT)編譯
- 延遲加載應用程序

適合閱讀對象

本書適合具備JavaScript基礎並希望深入學習Angular 2的TypeScript版本的開發人員。同時也適合有Angular 1經驗並希望轉型的開發人員。

詳細內容

Angular 2引入了一種全新的構建應用程序的方式。它完全擁抱了下一代瀏覽器中內置的最新概念,同時去除了Angular 1中的冗餘和臃腫。本書直接深入介紹了Angular 2的所有重要概念。除了涵蓋所有Angular 2的基礎知識,如組件、表單和服務,它還演示了該框架如何應用一系列新的Web技術,如ES6和TypeScript語法、Promises、Observables和Web Workers等。

本書詳細介紹了所有最複雜的Angular概念,同時介紹了使用這些強大工具的最佳實踐。同時也詳細介紹了加速應用程序開發所需的所有概念。書中還廣泛涵蓋了測試和性能優化等常被忽視的主題。閱讀本書的開發人員將對Angular 2的所有主要主題有廣泛而深入的理解。

風格和方法

本書採用烹飪書的方式,每個範例都是一個獨立的解決方案,可以獨立閱讀和應用。