NgRx (with NgRx Data) - The Complete Guide (FREE E-Book)
4.5 (1,906 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
8,354 students enrolled

NgRx (with NgRx Data) - The Complete Guide (FREE E-Book)

Learn the modern NgRx Ecosystem, including NgRx Data, Store, Effects, Router Store, NgRx Entity, and DevTools
4.5 (1,906 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
8,351 students enrolled
Last updated 6/2020
English
English [Auto-generated]
Current price: $104.99 Original price: $149.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 6 hours on-demand video
  • 3 articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Code in Github repository with downloadable ZIP files per section
  • Become familiar with the centralized store pattern, and how to use it in Angular
  • Know when to use a centralized store solution and why
  • Learn how to use NgRx Data to handle entity data with minimal code
  • Learn In-depth NgRx Store, understand in detail all core store patterns, including Reducers and Actions
  • Learn in detail NgRx Effects, learn when to use a side-effect
  • Learn in detail NgRx Entity, when to use and why, learn what are the benefits
  • Transform step-by-step an existing Angular plain application, and turn it into a store based application
  • Learn to implement common functionality in NgRx, such as Authentication or Entity Pagination
  • Learn NgRx in-depth in a fun and practical way, by implementing real use cases
Course content
Expand all 52 lectures 06:17:55
+ NgRx Key Concepts - Actions and Reducers
6 lectures 45:32
The Store Service API - Implementing the Login Screen
07:28
Defining NgRx Actions using Action Creators
11:09
Grouping Actions Together with Action Types
03:44
NgRx Reducers - Step-by-Step Implementation
08:55
Key Concepts Summary - NgRx Actions and Reducers In Action
06:00
+ NgRx Key Concepts - Selectors and Effects
9 lectures 01:10:49
How to Query the Store Data - An Example
12:37
NgRx Selectors - An In-Depth Explanation
12:00
NgRx Feature Selectors - a Simple Explanation
04:55
Implementing User Logout (Practice Lesson )
04:30
Implementing a Router Authentication Guard (Practice Lesson)
08:12
Introduction to NgRx Effects - What is a Side Effect?
05:49
Understanding NgRx Effects - A Simple Example
07:16
NgRx Effects - Step-by-Step Implementation
08:38
Implementing the Logout Effect (Practice Lesson)
06:52
+ NgRx Development Tools In Depth
3 lectures 25:52
Setting up NgRx Router Store and the Time-Travelling Debugger
10:33
NgRx Runtime Checks - How do they work?
08:30
NgRx Metareducers - Step-by-Step Implementation
06:49
+ NgRx Entity In Depth
12 lectures 01:26:52
NgRx Entity - Section Kickoff
03:35
NgRx Feature Design - Defining Actions First
06:07
Loading NgRx Entity Data using a Router Resolver
10:17
NgRx Effects - Fetching Data From the Backend
06:56
Understanding the NgRx Entity Format
05:53
Implementing Reducers Using the NgRx Entity Adapter
08:11
NgRx Entity Selectors - Refactoring the Home Component
10:07
Entity Adapter Configuration - Understanding sortComparer and selectId
04:25
NgRx Data Fetching Solution - How to Load Data Only If Needed
10:33
Optimistically Editing Entity Data - The Edit Course Dialog
10:42
Optimistic Data Editing - Reducer Implementation and Demo
04:06
Optimistic Data Editing - Saving Data in the background with an Effect
06:00
+ NgRx Data In Depth
13 lectures 01:43:21
Why NgRx Data? New Section Introduction
05:53
Setting Up NgRx Data in a Lazy Loaded Module
08:23
How Does NgRx Data Work? Transparent Fetching Data In Action
09:11
NgRx Custom Data Service - Fetching Data From the Backend
11:20
Controlling Data Loading with the NgRx Data loaded flag
05:18
Querying Store Data with NgRx Data and the entities$ Observable
08:16
NgRx Data CRUD - Why use Optimistic Updates?
13:22
NgRx Data CRUD - Why Pessimistic Data Creation?
06:43
NgRx Data CRUD - Optimistic Delete Implementation
07:08
Setting Up a new Entity - The Lesson Entity
03:42
Implementing the Course Component Using NgRx Data
05:15
Lessons Pagination using NgRx Data
12:12
Switching an NgRx Application to OnPush Change Detection
06:38
Requirements
  • Just a little bit of Angular and Typescript
Description

This course is a complete guide to the new NgRx Ecosystem, including NgRx Data, Store, Effects, Router Store, NgRx Entity, and DevTools, and comes with a running Github repo

This Course in a Nutshell

State management is the number one topic to know when it comes to frontend architecture design choices. Why choose to do state management in a single page application, when to do it and why, what are the benefits, and what are tradeoffs?

These are all critical questions that we will address in this course, as we give you an extended guided tour of the NgRx Ecosystem.

The most popular state management library in the Angular space is NgRx, and for good reasons. The latest release of NgRx is probably one of the most important releases in the whole Angular ecosystem recently. Although backward compatible, it contains so much new functionality that it's almost a brand new state management library.

Under the hood, the core concepts of Actions, Reducers, Effects, Entities, and Selectors remain the same, but we have now a brand new API for managing these concepts in a much less verbose way. Also, we have the inclusion of NgRx Data, which is a new and very powerful way of managing Entity Data.

Actually, NgRx Data is a powerful abstraction layer on top of NgRx, that allows us to add state management to large parts of our application without having to write much code at all!

Course Overview

In this course, we are going to take a small existing application that is built without any state management. We are going to understand what are the consequences of not doing state management by identifying some problems that the application has in its initial form.

Then we are going to start refactoring the application, and we are going to add state management to the application multiple screens step-by-step. We are going to start with the Authentication features of the application, and then we are going to move on to the entity data management part.

We are going to explain at length all the key concepts of NgRx: Actions, Reducers, Effects, and Selectors, and we are going to explain in detail the Store architecture itself and understand its benefits.

Throughout the course we are going to introduce step-by-step and explain in detail the NgRx Store module, NgRx Effects, we are going to cover in detail NgRx Entity and the Entity format, we are going to install and do a guided tour of the NgRx Dev Tools, the NgRx Router Store, and the time-travelling debugger.

We are also going to learn how to make the most out of NgRx Data, and learn how to customize it in order to manage entity data with minimal application code. We will cover NgRx while keeping in mind best practices like good Action hygiene.

Table of Contents

This course covers the following topics:

  • Introduction to State Management

  • The Store Architecture In Detail

  • NgRx Key Concepts

  • Actions and Action Creators

  • Reducers

  • NgRx Effects

  • Selectors

  • Adding Authentication to an NgRx Application

  • NgRx Entity and the Entity Format

  • NgRx DevTools

  • NgRx Time Travelling Debugger

  • NgRx Runtime checks and Store Immutability

  • NgRx Router Store

  • NgRx Data and Entity State Management

  • NgRx Best Practices

What Will You Learn In this Course?

At the end of this course, you will feel comfortable with the notions of state management and the centralized store solution in general.

You will feel comfortable designing new Applications using NgRx, using a simple methodology and you will know in-depth the complete Ngrx library ecosystem: including the Ngrx Store, Effects, Entity, and NgRx Data libraries.

You will know how to quickly scaffold parts of the solution using Ngrx Schematics, and how to set up the Ngrx DevTools from scratch, including the router integration.

Who this course is for:
  • Angular Developers looking to learn in-depth the modern NgRx Ecosystem, including Ngrx Store, Effects, Router Store, Ngrx Entity, DevTools and Schematics!