|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/rxjs-reactive-angular-course/
课程评论:没有评论
课程名称:反应式 Angular 课程 (配合 RxJs, Angular 20) 课程概述: 本课程旨在为每位 Angular 开发者提供常用设计模式(以及一些反模式)的全面目录,目标是教会大家如何利用纯 RxJs 以反应式风格设计和开发 Angular 应用程序。课程提供了一个运行中的 Github 仓库,包含完成的代码以及各个部分的起始代码,推荐学员在学习过程中进行编码,以达到最佳学习效果。 课程探讨了一个常见问题:在不引入任何状态管理库的前提下,Angular 能达到怎样的深度。课程中教授的简单技巧适合广泛的应用场景,尤其是内部开发的企业应用。学员将学会如何使用 RxJs 设计和开发应用的服务层和视图层,同时了解反应式方法的优缺点。 课程内容: - 分析一个以命令式风格编写的小型 Angular 应用,讨论该方法的一些问题; - 逐步重构应用为无状态的反应式风格; - 详细解释每一个用到的 RxJs 操作符; - 学习简单的 RxJs 状态管理技术,提升用户体验,处理应用数据和用户认证; - 深入探讨 RxJs 行为主题,以及如何实现轻量级状态管理; - 提供常见 UI 功能(如加载指示器和错误信息)的反应式解决方案。 课程大纲: 1. 复习命令式风格编写的应用 2. 反构建至无状态反应式风格及其好处 3. 智能组件与展现组件 4. 无状态 Observable 服务 5. shareReplay 操作符 6. 无状态 UI 更新 7. RxJs 主题和行为主题介绍 8. 使用共享可观察服务进行解耦组件通信 9. 使用 Observable 实现组件间交互 10. 反应式风格的错误处理及错误信息 11. 反应式风格的加载指示器 12. 通过轻量级 RxJs 存储改善用户体验 13. 乐观 UI 更新 14. 使用纯 RxJs 管理用户认证状态 15. 本地服务与全局服务 16. 反应式风格的主从模型及缓存主表 17. 单数据 Observable 模式 18. 将反应式应用重构为 OnPush 改变检测 19. 结论与关键要点 学习成果: 在课程结束时,学员将能够自信地以反应式风格设计和开发 Angular 应用,熟练应用简化的反应式状态管理技术,理解这种方法的优点和局限性,掌握一系列常用的反应式设计模式,并避免常见的陷阱。
This Course in a NutshellThis course is a catalog of commonly used design patterns (and some anti-patterns) that every Angular developer should know. The goal of the course is to teach you how to comfortably design and develop applications in Angular in Reactive style using just plain RxJs, and nothing more.This course comes with a running Github repository with the the finished code, as well as starting points for different sections of the course in case that you want to code along, which we recommend as its the best way to learn.This course answers the common question: how far can we go in Angular while using only plain RxJs and nothing more, without introducing any state management library?It turns out that the simple set of techniques taught in this course are very well suited for a wide range of applications, especially in-house built enterprise applicationsIn this course, you will learn exactly how to use RxJs to design and develop both the service and the view layers of your application, and you will understand both the advantages and the pitfalls of the reactive approachParticularly when it comes to state management, it turns out that we can already go very far by leveraging only plain Angular and RxJs techniques, without using an additional state management library like for example NgRxThese simplified state management techniques are adequate and sufficient for a large range of applications, and we believe that you should consider them first before thinking of adopting a full-blown state management solutionHow far can you go with these techniques? That's what you will find out in this course.Course OverviewWe are going to start our course by taking a small Angular application that is written in imperative style, and we are going to talk about some of the problems of that aproach Then, we are going to refactor the application and explain step-by-step how to implement it in reactive style instead.We will explain in detail every RxJs operator that we come across in this course, the first time that we need each operator.We are going to start with a fully stateless solution first, but later we are going to improve the user experience by applying some simple RxJs-only state management techniques We are going to use these patterns in order to handle some of the data of the application, as well as the user authentication profile.The key element needed to implement lightweight state management is RxJs behavior subjects so we will cover those in detail in the course We will also provide step-by-step reactive style solutions for common UI functionality like loading indicators or error messages.Table of ContentsThis course covers the following topics:Review of an application written in imperative styleRefactoring into stateless reactive style, understanding the benefitsSmart vs Presentational ComponentsStateless Observable ServicesThe shareReplay OperatorStateless UI updates (without state management)Introduction to RxJs Subjects and BehaviorSubjectDecoupled component communication using shared observable servicesUsing Observables to have components interact at different levels of the component treeError Handling and error messages in reactive styleLoading Indicators in reactive styleImproving user experience with lightweight RxJs storesOptimistic UI updatesManaging User Authentication state with plain RxJsLocal vs Global ServicesMaster Detail with cached master table in reactive styleThe Single Data Observable Pattern: Avoiding nested ng-component tagsRefactoring a reactive application to OnPush change detectionConclusion and key takeawaysWhat Will You Learn In this Course?At the end of the course, you will feel comfortable designing and developing Angular applications in reactive style, by leveraging plain RxJs-only techniques You will know how to apply simplified reactive state management techniques to different common use cases, and you will understand the advantages and the limitations of this approachYou will be familiar with a series of commonly needed reactive design patterns, and you will also be familiar with a series of common pitfalls to avoid