Angular 2 Cookbook - Second Edition
暫譯: Angular 2 食譜 - 第二版
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.
商品描述(中文翻譯)
關於本書
本書是暢銷書《AngularJS 網頁應用程式開發食譜》的作者所著,《Angular 2 食譜》是 Packt 的 Angular 食譜系列的最新版本。
書籍特色
-
70 多個詳細範例:每個食譜都提供面對 Angular 2 中每個挑戰的策略 -
所有代碼來自最新版本:不包含過時的 Angular 版本候選資料;所有代碼均與最新的 Angular 2.4 版本保持一致 -
Webpack 應用程式組織:包括如何使用 Webpack、SystemJS 和 Angular CLI 構建應用程式的指導 -
伴隨網站連結:每個食譜都提供一本書的伴隨網站上的唯一 URL;該頁面包括 Plunker 上的工作範例連結、食譜的源代碼在 GitHub 上的連結,以及各種相關資源。伴隨網站無需登錄,免費使用。 -
立即實驗可運行的代碼:書中的幾乎每個食譜都有伴隨網站上的 Plunker 可運行範例的連結。訪問該連結,立即開始實驗 Angular 2 - 無需設置或安裝。 -
逐步範例:書中的所有代碼都明確寫出,每段代碼都是構建簡單工作範例的一步。每個食譜中都充分解釋了語法、設計決策和重構。
深入探討的主要主題:
- 從 Angular 1 升級到 Angular 2
- 元件
- 指令
- 模板驅動表單
- 反應式表單
- 承諾
- RxJS 可觀察對象
- 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 的基本知識,如元件、表單和服務外,還展示了該框架如何擁抱一系列新的網頁技術,如 ES6 和 TypeScript 語法、承諾、可觀察對象和 Web Workers 等等。
本書涵蓋了所有最複雜的 Angular 概念,同時介紹了使用這些強大工具的最佳實踐。它還詳細介紹了你需要掌握的所有概念,以便更快地構建應用程式。經常被忽視的主題,如測試和性能優化,也得到了廣泛的討論。閱讀本書所有內容的開發人員將對 Angular 2 界的所有主要主題有廣泛而深入的理解。
風格與方法
本書採用食譜式的方法——每個食譜都提出一個獨特的問題,並以清晰、簡潔的逐步方式提供解決方案。每個食譜中都有實用的實踐指導,幫助你掌握這些概念。