Architecting Angular Applications with Redux, RxJS, and NgRx

Manage state in Angular to write high performing web apps by combining the power of Flux, RxJS, and NgRx
Preview in Mapt

Architecting Angular Applications with Redux, RxJS, and NgRx

Christoffer Noring
New Release!

1 customer reviews
Manage state in Angular to write high performing web apps by combining the power of Flux, RxJS, and NgRx
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $35.99
Save 72%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Architecting Angular Applications with Redux, RxJS, and NgRx Book Cover
Architecting Angular Applications with Redux, RxJS, and NgRx
$ 35.99
$ 10.00
Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $51.98
Add to Cart

Book Details

ISBN 139781787122406
Paperback364 pages

Book Description

Managing the state of large-scale web applications is a highly challenging task with the need to align different components, backends, and web workers harmoniously.  When it comes to Angular, you can use NgRx, which combines the simplicity of Redux with the reactive programming power of RxJS to build your application architecture, making your code elegant and easy to reason about, debug, and test.

In this book, we start by looking at the different ways of architecting Angular applications and some of the patterns that are involved in it. This will be followed by a discussion on one-way data flow, the Flux pattern, and the origin of Redux.

The book introduces you to declarative programming or, more precisely, functional programming and talks about its advantages. We then move on to the reactive programming paradigm. Reactive programming is a concept heavily used in Angular and is at the core of NgRx. Later, we look at RxJS, as a library and master it. We thoroughly describe how Redux works and how to implement it from scratch. The two last chapters of the book cover everything NgRx has to offer in terms of core functionality and supporting libraries, including how to build a micro implementation of NgRx.

This book will empower you to not only use Redux and NgRx to the fullest, but also feel confident in building your own version, should you need it.

Table of Contents

Chapter 1: Quick Look Back at Data Services for Simple Apps
Model-View-Controller – the pattern we all know
An MVC flow in Angular
Using ES2015 modules
Dependency Injection
Fetching and persisting data with HTTP – introducing services with Observables
Summary
Chapter 2: 1.21 Gigawatt – Flux Pattern Explained
Core concepts overview
A uniform data flow
Demoing a uniform data flow
Adding more actions to our flow
Adding AJAX calls
An even bigger solution
Summary
Chapter 3: Asynchronous Programming
The callback pattern
Problems with structuring async code – callback hell
Promises
Asynchronous libraries
Async/await
Summary
Chapter 4: Functional Reactive Programming
Functional programming versus imperative programming
Recursion
Asynchronous data streams
Comparing lists to async streams – preparing for RxJS
Summary
Chapter 5: RxJS Basics
Observer pattern
RxJS core concepts
Creating Observables
Cleanup
Creating a core implementation of RxJS
Summary
Chapter 6: Manipulating Streams and Their Values
Starting out
Stream in a stream
AJAX
A deeper look
Thinking in streams
Summary
Chapter 7: RxJS Advanced
Hot, cold, and warm Observables
Subjects
Error handling
Marble testing
Pipeable operators
Summary
Chapter 8: Redux
Principles
Core concepts
Data flow
Dealing with asynchronous calls
Best practices
Summary
Chapter 9: NgRx – Reduxing that Angular App
NgRx overview
@ngrx/store – state management
Best practices
Leveraging types and feature modules
Component architecture
@ngrx/store-devtools – debugging
@ngrx/effects – working with side effects
Summary
Chapter 10: NgRx – In Depth
@ngrx/entity
@ngrx/router-store
Understanding NgRx – building our own micro implementation
@ngrx/schematics
Summary

What You Will Learn

  • Understand the 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 promises
  • Set up different versions of cascading calls
  • Explore advanced operators
  • Get familiar with the Redux pattern and its principles
  • Test and debug different features of your application
  • Build your own lightweight app using Flux, Redux, and NgRx

Authors

Table of Contents

Chapter 1: Quick Look Back at Data Services for Simple Apps
Model-View-Controller – the pattern we all know
An MVC flow in Angular
Using ES2015 modules
Dependency Injection
Fetching and persisting data with HTTP – introducing services with Observables
Summary
Chapter 2: 1.21 Gigawatt – Flux Pattern Explained
Core concepts overview
A uniform data flow
Demoing a uniform data flow
Adding more actions to our flow
Adding AJAX calls
An even bigger solution
Summary
Chapter 3: Asynchronous Programming
The callback pattern
Problems with structuring async code – callback hell
Promises
Asynchronous libraries
Async/await
Summary
Chapter 4: Functional Reactive Programming
Functional programming versus imperative programming
Recursion
Asynchronous data streams
Comparing lists to async streams – preparing for RxJS
Summary
Chapter 5: RxJS Basics
Observer pattern
RxJS core concepts
Creating Observables
Cleanup
Creating a core implementation of RxJS
Summary
Chapter 6: Manipulating Streams and Their Values
Starting out
Stream in a stream
AJAX
A deeper look
Thinking in streams
Summary
Chapter 7: RxJS Advanced
Hot, cold, and warm Observables
Subjects
Error handling
Marble testing
Pipeable operators
Summary
Chapter 8: Redux
Principles
Core concepts
Data flow
Dealing with asynchronous calls
Best practices
Summary
Chapter 9: NgRx – Reduxing that Angular App
NgRx overview
@ngrx/store – state management
Best practices
Leveraging types and feature modules
Component architecture
@ngrx/store-devtools – debugging
@ngrx/effects – working with side effects
Summary
Chapter 10: NgRx – In Depth
@ngrx/entity
@ngrx/router-store
Understanding NgRx – building our own micro implementation
@ngrx/schematics
Summary

Book Details

ISBN 139781787122406
Paperback364 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 10.00
ASP.NET Core 2 and Angular 5 Book Cover
ASP.NET Core 2 and Angular 5
$ 35.99
$ 10.00
Architectural Patterns Book Cover
Architectural Patterns
$ 39.99
$ 10.00
Mastering JavaScript Functional Programming Book Cover
Mastering JavaScript Functional Programming
$ 35.99
$ 10.00
Switching to Angular - Third Edition Book Cover
Switching to Angular - Third Edition
$ 23.99
$ 10.00
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 10.00