22.03
topics · Applied Angular
Applied Angular: topics
Refactoring for Consistency
We will start the course with an existing Angular application. We will explore the code base for code smells and weaknesses, including:
API access
- Hidden side effects (API Access, etc.) and inconsistent validation
- Duplicated API access and performance impacts
Rendering and state
- Rendering and other performance issues
- Confusing or incorrect routing configuration
- Inability to hydrate state per-route
- Misaligned security policies
Components and UI/UX
- Accessibility issues and inconsistent UI/UX
Source code management
- Configuring for Branch By Abstraction
- Developing Features and Experiments
- Sharing Code Between Features
For each of these we will explore solutions and refactor the code.
Centralizing Side Effects (API Calls, Etc.)
- Using TanStack Angular Query to optimize data from APIs
- Validating data from APIs and handling errors
- The use of a centralized “Store” for shared data in your application.
Rendering and State
- Using Observables and Angular Signals to keep the UI in sync
- Maintaining and protecting application user state
- Maintaining and protecting application API state
- Routes in Angular as the primary source of state
- Planning API access around routes
- Securing routes with route guards, and their limitations
Components and Directives: Creating our Own Business Language with Angular
- Using components to clarify the design of the application
- Creating component hierarchies
- Centralizing concerns for consistency with components and directives
Working with your team to create conventions in your application
- How to safely share code between features
- How to implement CI using Branch by Abstraction to avoid merge conflicts
- How to have a plan for versioning and keeping your application’s dependencies up to date.