Edit product

NgRx Book: Reactive State Management for Angular

The complete learning resource on state management with NgRx Store & Effects in Angular.

Learn how to structure your application state, describe events with actions and perform deterministic state transitions with reducers. State management with NgRx follows the Redux pattern and is used by hundreds of companies to build maintainable Angular applications. In combination with TypeScript and RxJS it empowers you to write testable business logic and explicit side-effects for talking to servers through HTTP or WebSockets. With immutability as a core concept you also gain performance benefits, eventually giving you the best of both worlds: lightning fast applications that are easy to maintain and grow.

I'm a freelance software engineer, trainer, speaker and author. While working on enterprise software, helping others to do the same, as well as building the online graphics tool startup SceneLab, I became a big fan of the NgRx library. After writing multiple blog posts on advanced NgRx topics and building a library for undo-redo, I'm now putting all my experience into this book to provide you with solid foundations.

We'll be building an example application with the most recent versions of Angular & NgRx while getting to know all aspects of NgRx, how they fit together and which best practices you should apply. The code examples in the book are accompanied by a hosted repository where you can follow along each step of the way and jump into live demos in the browser.

Nils Mehlhorn | nils-mehlhorn.de

Follow me @n_mehlhorn for updates


Contents

  • When to Use NgRx
  • NgRx Is Not Just a Store
  • Concepts & Terminology
  • Installation & Setup
  • Using Schematics
  • File Structure & Naming
  • Debugging
  • State Normalization
  • What Not to Put in The State
  • Actions & Action Creators
  • Creating & Registering Reducers
  • Using mutable APIs with immer.js
  • Meta-Reducers
  • Fat vs Thin Actions & Reducers
  • Selectors
  • Feature Modules
  • NgRx Effects: Setup, Source, Error Handling
  • Testing Action Creators, Reducers, Selectors, Effects
  • Testing Related Components & Services
  • Router Store
  • Less boilerplate with NgRx Entities and Data
  • Performance Tips
  • Patterns: Facades, Presentational & Container Components, Re-Hydration


Praise

"I had the chance to review Nils' book about NgRx. It is a great source for beginners but also contains valuable contents for state management veterans. The illustrations Nils has made are 🔥"

— Gregor Woiwode, Google Developer Expert


"A must-read when you're considering to start a new Angular project with NgRx. Nils has actionable advice on when you'll need it and how to get started properly."

— Tim Deschryver, NgRx Team Member


FAQ

Who's this book for?

Anyone who wants to get started with solid state management for Angular. That said, prior experience with TypeScript, Angular & RxJS is helpful. However, I'm also keen on providing backlinks to background resources anytime things might get complex.

What versions of NgRx & Angular are covered?

The code examples are developed with Angular & NgRx 10. Specifically, these are using the creator APIs introduced in NgRx 8.

What about updates?

You'll receive all future updates.

What about refunds?

If you're not satisfied, reply to the download email within 14 days to get a full refund.

Can I share this book with my team?

Please purchase the team license for using the book in a corporate context.

What if I'm a student and/or strapped for cash?

Let's figure it out, drop me a message on Twitter or via the mail listed here.

You've purchased this product

See it in your library

View in Library
Sorry, this item is not available in your location.
Sold out, please go back and pick another option.

0 ratings

  • You'll get the full eBook in PDF & EPUB format.
  • PublishedNov 2020
  • Pages151
  • Coding Steps42

Checkout

NgRx Book: Reactive State Management for Angular

Enter your info to complete your purchase of Individual License

Card

···· ···· ···· 4242
Test card

05/18

Card

Use a different card?

Card

pp paypal

or pay with

We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

or pay with

You'll be charged US$19.

Your purchase was successful!

We charged your card and sent you a receipt

    Gumroad Library

    Download from the App Store or text yourself a link to the app

    Thanks for purchasing the NgRx book! I've put ton of work into writing it and hope it helps you to become a better Angular developer.

    If you find the book helpful, it would mean a lot to me if you left a five-star review on Gumroad and share it on Twitter or LinkedIn. If you have any questions or concerns, or you just want to tell me how awesome the book is, you can always reach me by email at contact@nils-mehlhorn.de

    Cheers,

    Nils Mehlhorn

    Good news! Since you already have a Gumroad account, it's also been added to your library.

    Powered by Gumroad