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

Angular Router In Depth (Angular 21)

Angular Router Chuyên Sâu (Angular 21)

Angular Router Chuyên Sâu (Angular 21)

Xây dựng Ứng dụng Trang Đơn (SPA) Angular 21 quy mô lớn với Angular Router mạnh mẽ

4.4
(1,713 đánh giá)
17,574 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đ 379.000đ -87%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
5.0 giờ video
34 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

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

Mã nguồn trên Github kèm file ZIP có thể tải xuống cho từng phần
Hướng dẫn chuyên sâu toàn diện về Angular Router
Các Thực Hành Tốt Nhất với Angular Router
Tận dụng tối đa tính năng Tải chậm (Lazy-loading)
Điều hướng Master-Detail và Detail-to-Detail
Tìm hiểu chuyên sâu về Tiền tải (Preloading)
Tìm hiểu chuyên sâu về Router Guards
Các Khái Niệm Router Nâng Cao

Yêu cầu

Cần có kiến thức Angular cơ bản, không cần nâng cao

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

Dành cho lập trình viên Angular muốn tìm hiểu sâu về Angular Router

Nội dung khóa học

6 phần • 34 bài giảng
1 Tổng quan khóa học Angular Router Chuyên Sâu
2 Tải E-Book Angular Router Jumpstart
3 QUAN TRỌNG
4 Thiết lập Môi trường Phát triển cho khóa học
5 Ứng dụng Trang Đơn (SPA) là gì? Ưu điểm và Nhược điểm
6 Angular Router là gì? Các Khái Niệm Cốt lõi (Routes, Paths và Outlets)
7 Các Khái Niệm Cốt lõi - Directives routerLink và routerLinkActive
1 Cách thiết lập Tải chậm (Lazy Loading) với Angular Router
2 Demo thực tế: Các Module Tải chậm trong Angular Router
3 Cấu hình Angular Router - Thực Hành Tốt Nhất
4 Biến Đường dẫn Router - Các Route có mục tiêu biến đổi với Directive Router Link
5 Dịch vụ Resolver trong Angular Router - Xây dựng Trang có thể Liên kết trong SPA
6 Chỉ báo Tải Router - Phát hiện Chuyển đổi Route và Tải chậm
1 Child Routes trong Angular Router - Giải thích từng bước
2 Demo Child Routes - Component Danh sách Bài học
3 Triển khai Master-Detail - Điều hướng từ Master đến Detail Component
4 Triển khai Lesson Detail Resolver
5 Điều hướng Router theo chương trình với Router Service
6 So sánh Route Snapshots và Route Observables - Khi nào nên dùng và tại sao
1 Giới thiệu phần Router Guards - Ôn lại Authentication Store
2 CanActivate Router Guards - Guards xác thực
3 Tìm hiểu về CanActivateChild Guards
4 CanDeactivate Router Guards - Ví dụ thực tế
5 CanLoad Guards trong Angular Router
1 Chiến lược Tiền tải (Preloading Strategy) trong Angular Router là gì?
2 Chiến lược Tiền tải Tùy chỉnh
3 Demo Tham số Truy vấn (Query Parameters) trong Router
4 Cấu hình hành vi định tuyến với routerLinkActiveOptions
5 Secondary Outlets trong Angular Router - Giải thích từng bước
6 Secondary Outlets - Một số vấn đề cần lưu ý
7 Các tùy chọn bổ sung cho Router Module - enableTracing và useHash
8 Các tùy chọn bổ sung - Cài đặt được khuyến nghị
1 Bài học bổ sung (Cập nhật tháng 2/2026)
2 Tổng kết và những điểm chính

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

This Course in a Nutshell

In this course, we are going to learn in detail the advantages of building a frontend UI as a single-page application, as opposed to a traditional multi-page application.

Single-page applications (or SPAs) have been around for years now, and are today more popular than ever as a simplified way to build enterprise frontends or internet product dashboards.

SPAs typically give the end-user a much better user experience, due to their better-perceived performance and responsiveness. In this course, we will learn how to use the Angular Router to turn our Angular application into a SPA.

Course Overview

We are going take as a starting point a small Angular application that does not have any routing yet. We are then going to learn how to configure the Angular Router from scratch. We will assume no prior Angular Router knowledge, as we explain everything from first principles.

We will start by introducing the essential router concepts such as route configuration, paths, router outlets, and router navigation links. From these essential concepts, will build a much more advanced routing scenario.

We will learn how to build a master-detail with detail-to-detail navigation scenario, and we will use this example to introduce all the advanced routing concepts and powerful features that the Angular Router offers us.

This will include lazy loading modules, data pre-fetching with Resolvers, protecting route access with Guards, custom pre-loading strategies, secondary outlets (auxiliary routes), and much more.

Table of Contents

This course covers the following topics:

  • What is a single page application?

  • Best practices for router configuration: home route, page not found route, etc.

  • Essential Router configurations concepts: paths, components, and outlets

  • Essential Router navigation concepts; the routerLink and routerLinkActive directives

  • Relative vs Absolute routing best practices

  • Understanding Path matching and router configuration order

  • Router Path and Query parameters

  • Router redirects

  • Deep linking with the Angular router: master-detail with detail-to-detail navigation scenario

  • Understanding router snapshots vs router observables

  • Lazy loaded routes

  • Route data pre-loading with Resolvers

  • Router module pre-loading strategies, building a custom preloading strategy

  • Router Guards - CanActivate and CanActivateChild Authentication Guards

  • Preventing route exits with CanDeactivate guards

  • Checking if a lazy-loaded module can be loaded with CanLoad

  • Router Loading Indicator

  • Understanding Router Hash location strategy

  • Secondary router outlets and auxiliary routes

  • The router module extra configuration options: enableTracing, scrollPositionRestoration, paramsInheritanceStrategy, etc

What Will You Learn In this Course?

At the end of this course, you will feel comfortable setting up the Angular Router from scratch in an existing Angular application

You will know not only the essentials of the router together with all its most advanced features, but most importantly you will know exactly when to use each feature and why, and you will know numerous best practices that will help you to make the most out of the Angular Router

Have a look at the course free lessons below, and please enjoy the course!

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 Frontend Frameworks
Hiển thị tất cả khoá học Javascript
Hiển thị tất cả khoá học Web Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊