Architecting Angular Applications Flux, Redux & ngrx
暫譯: 架構 Angular 應用程式:Flux、Redux 與 ngrx

Christoffer Noring

  • 出版商: Packt Publishing
  • 出版日期: 2018-03-26
  • 定價: $1,600
  • 售價: 9.5$1,520
  • 語言: 英文
  • 頁數: 364
  • 裝訂: Paperback
  • ISBN: 1787122409
  • ISBN-13: 9781787122406
  • 相關分類: Angular
  • 立即出貨 (庫存=1)

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

相關主題

商品描述

Key Features

  • Learn what makes a good angular application architecture
  • Use Redux to write performant, consistent Angular applications
  • Bring the one-way data flow architecture to your Angular apps

Book Description

RxJS is used to architect the internal state of your application to make it easier to develop, test and debug. Angular doesn't prescribe any specific internal architecture. When it comes Angular, you can combine ngRx which is Redux for Angular with RxJS. It's the best of both worlds, the simplicity of Redux plus the reactive programming power of RxJS helps to build your application architecture which makes your code elegant, easy to "reason" about, debug and test.

This book will teach you to build highly performing architecture for your applications by combining the power of Flux, Redux & ngrx. It starts by retrospecting the way we use to build apps in AngularJS and will look at one way data flow and Flux pattern with concepts such as Dispatcher, Action, Stores and Controller Views. You will then learn to structure your async code and see how to model Streams and Values over time, manipulate data streams. Additionally, you will get familiar with the basics of RxJS and later explore advanced operators, Subjects, Schedulers, Error handling, Testing, Tools. Furthermore, you will not only get to know the Redux pattern but also will understand when and why you need it. Towards the end, you will realize why ngrx and Angular go so well together. You will also see how to debug your application with selected tools as well as test different facets of your app

By the end of the book, you will be able to build your own light weight app using Flux, Redux & ngrx.

What you will learn

  • Understand one way data flow and Flux pattern
  • Work with Functional programming and Asynchronous data streams
  • Figure out how RxJS can help us address the flaws in/of Promises
  • Set up cascading different versions of cascading calls
  • Explore more advanced operators such as flatMap, switchMap, Subjects, Schedulers and Error handling approaches.
  • Get familiar with Redux pattern and its three principles
  • Test and Debug different features of your app.

商品描述(中文翻譯)

**主要特點**

- 學習什麼是良好的 Angular 應用程式架構
- 使用 Redux 編寫高效且一致的 Angular 應用程式
- 將單向數據流架構引入您的 Angular 應用程式

**書籍描述**

RxJS 用於架構應用程式的內部狀態,使開發、測試和除錯變得更容易。Angular 並不規定任何特定的內部架構。對於 Angular,您可以將 ngRx(Angular 的 Redux)與 RxJS 結合使用。這是兩者的最佳結合,Redux 的簡單性加上 RxJS 的反應式編程能力,有助於構建您的應用程式架構,使您的代碼優雅、易於「推理」、除錯和測試。

本書將教您通過結合 Flux、Redux 和 ngrx 的力量來構建高效能的應用程式架構。它首先回顧我們在 AngularJS 中構建應用程式的方式,並將探討單向數據流和 Flux 模式,涵蓋 Dispatcher、Action、Stores 和 Controller Views 等概念。接著,您將學習如何結構化您的異步代碼,並了解如何隨時間建模 Streams 和 Values,操作數據流。此外,您將熟悉 RxJS 的基本概念,然後探索進階運算子、Subjects、Schedulers、錯誤處理、測試和工具。更重要的是,您不僅會了解 Redux 模式,還會理解何時以及為什麼需要它。到書的結尾,您將意識到為什麼 ngrx 和 Angular 這麼契合。您還將看到如何使用選定的工具來除錯您的應用程式,以及測試應用程式的不同方面。

在書籍結束時,您將能夠使用 Flux、Redux 和 ngrx 構建自己的輕量級應用程式。

**您將學到的內容**

- 理解單向數據流和 Flux 模式
- 使用函數式編程和異步數據流
- 瞭解 RxJS 如何幫助我們解決 Promise 的缺陷
- 設置不同版本的級聯調用
- 探索更進階的運算子,如 flatMap、switchMap、Subjects、Schedulers 和錯誤處理方法
- 熟悉 Redux 模式及其三個原則
- 測試和除錯應用程式的不同功能