Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

NgRx (with NgRx Data) - The Complete Guide (Angular 20)

NgRx (với NgRx Data) - Hướng dẫn Toàn diện (Angular 20)

NgRx (với NgRx Data) - Hướng dẫn Toàn diện (Angular 20)

Học Hệ sinh thái NgRx hiện đại, bao gồm NgRx Data, Store, Effects, Router Store, NgRx Entity và DevTools

4.4
(7,595 đánh giá)
34,450 học viên
Giảng viên
Angular University
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 1.969.000đ -97%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
6.5 giờ video
51 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 18/03/2026

Bạn sẽ học được gì

Mã nguồn trên Github, có file ZIP tải xuống cho từng phần
Làm quen với mô hình lưu trữ tập trung và cách sử dụng nó trong Angular
Biết khi nào nên dùng giải pháp lưu trữ tập trung và lý do tại sao
Học cách dùng NgRx Data để xử lý dữ liệu thực thể với mã tối giản
Tìm hiểu sâu về NgRx Store, nắm chi tiết các mẫu lõi như Reducers và Actions
Tìm hiểu chi tiết NgRx Effects, biết khi nào cần dùng side-effect
Tìm hiểu chi tiết NgRx Entity, lợi ích và thời điểm sử dụng
Chuyển đổi từng bước một ứng dụng Angular thông thường thành ứng dụng dựa trên store
Học cách triển khai các chức năng phổ biến trong NgRx như Xác thực hay Phân trang Thực thể
Học NgRx chuyên sâu qua các tình huống thực tế, vừa thú vị vừa thiết thực

Yêu cầu

Chỉ cần một chút kiến thức về Angular và Typescript

Đối tượng phù hợp

Dành cho nhà phát triển Angular muốn học chuyên sâu Hệ sinh thái NgRx hiện đại, bao gồm Ngrx Store, Effects, Router Store, Ngrx Entity, DevTools và Schematics!

Nội dung khóa học

7 phần • 51 bài giảng
1 Tổng quan về NgRx (với NgRx Data)
2 QUAN TRỌNG - Phiên bản phần mềm được đề xuất
3 Thiết lập Môi trường Phát triển cho Khóa học NgRx Toàn diện
4 Ebook Nhập môn Typescript
5 NgRx là gì? Tại sao cần Quản lý Trạng thái và lợi ích mang lại?
6 Cài đặt NgRx và NgRx DevTools
1 Cấu hình NgRx Feature Module bằng NgRx Schematics
2 Store Service API - Triển khai Màn hình Đăng nhập
3 Định nghĩa NgRx Actions bằng Action Creators
4 Nhóm các Actions với Action Types
5 NgRx Reducers - Triển khai Từng bước
6 Tóm tắt Khái niệm - NgRx Actions và Reducers trong Thực tế
1 Cách Truy vấn Dữ liệu Store - Ví dụ Minh họa
2 NgRx Selectors - Giải thích Chuyên sâu
3 NgRx Feature Selectors - Giải thích Đơn giản
4 Triển khai Chức năng Đăng xuất (Bài thực hành)
5 Triển khai Router Authentication Guard (Bài thực hành)
6 Giới thiệu NgRx Effects - Side Effect là gì?
7 Hiểu về NgRx Effects - Ví dụ Đơn giản
8 NgRx Effects - Triển khai Từng bước
9 Triển khai Logout Effect (Bài thực hành)
1 Thiết lập NgRx Router Store và Time-Travelling Debugger
2 NgRx Runtime Checks - Cách hoạt động
3 NgRx Metareducers - Triển khai Từng bước
1 Bắt đầu phần NgRx Entity
2 Thiết kế NgRx Feature - Định nghĩa Actions trước
3 Tải Dữ liệu NgRx Entity bằng Router Resolver
4 NgRx Effects - Lấy Dữ liệu từ Backend
5 Hiểu về Định dạng NgRx Entity
6 Triển khai Reducers bằng NgRx Entity Adapter
7 NgRx Entity Selectors - Tái cấu trúc Home Component
8 Cấu hình Entity Adapter - Hiểu sortComparer và selectId
9 Giải pháp Tải Dữ liệu NgRx - Cách chỉ tải khi cần
10 Chỉnh sửa Dữ liệu Thực thể theo cách Optimistic - Hộp thoại Edit Course
11 Chỉnh sửa Dữ liệu Optimistic - Triển khai Reducer và Demo
12 Chỉnh sửa Dữ liệu Optimistic - Lưu Dữ liệu nền bằng Effect
1 Tại sao dùng NgRx Data? Giới thiệu phần mới
2 Thiết lập NgRx Data trong Lazy Loaded Module
3 NgRx Data hoạt động thế nào? Minh họa Tải Dữ liệu Tự động
4 NgRx Custom Data Service - Lấy Dữ liệu từ Backend
5 Kiểm soát việc tải dữ liệu với cờ loaded của NgRx Data
6 Truy vấn Dữ liệu Store với NgRx Data và Observable entities$
7 NgRx Data CRUD - Tại sao dùng Cập nhật Optimistic?
8 NgRx Data CRUD - Tại sao Tạo Dữ liệu theo cách Pessimistic?
9 NgRx Data CRUD - Triển khai Xóa Optimistic
10 Thiết lập Thực thể mới - Thực thể Lesson
11 Triển khai Course Component bằng NgRx Data
12 Phân trang Lessons bằng NgRx Data
13 Chuyển ứng dụng NgRx sang OnPush Change Detection
1 Bài học Bổ sung (Cập nhật tháng 2/2026)
2 Kết luận Khóa học Angular NgRx

Giới thiệu khóa học

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

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Angular
Hiển thị tất cả khoá học Ngrx
Hiển thị tất cả khoá học State Management
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊