Angular Design Patterns and Best Practices Create Scalable and Adaptable Applications That Grow to Meet Evolving User Needs
Unleash the full potential of Angular 17 to create more robust and feature-rich applications effortlessly Key Features Boost your Angular app development productivity by leveraging often-overlooked advanced features and best practices Enhance the quality of your Angular applications by simplifying c...
Otros Autores: | , , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England :
Packt Publishing
[2024]
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009799144506719 |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- Foreword
- Contributors
- Table of Contents
- Preface
- Part 1: Reinforcing the Foundations
- Chapter 1: Starting Projects the Right Way
- Technical requirements
- Why choose Angular?
- Batteries included
- Google support
- Community
- Tooling
- What technologies are present in the ecosystem?
- TypeScript
- RXJS
- Karma and Jasmine
- Webpack
- Configuring your development environment
- VS Code
- VS Code settings
- Fira Code font and ligatures
- Standardizing the extensions and settings in the project
- Angular DevTools
- Starting an Angular project
- Project structure
- Using the Angular CLI for your productivity
- ng add
- ng update
- ng serve
- ng build
- ng deploy
- ng generate
- Summary
- Chapter 2: Organizing Your Application
- Technical requirements
- Organizing the application with Angular modules
- declarations
- providers
- imports
- exports
- The first module - AppModule
- What is the difference between Angular and JavaScript modules?
- Modules type
- Avoiding anti-pattern - single module app
- Optimizing the usage of common modules - the SharedModule pattern
- Improving the size of your app - lazy loading
- Summary
- Chapter 3: TypeScript Patterns for Angular
- Technical requirements
- Creating classes and types
- Primitive and basic types
- Classes
- Interfaces
- Type aliases
- When to use classes, interfaces, or types
- Creating methods and functions
- Working with null values
- Decreasing verbosity - type inference
- Validating types - type guards
- Using a better alternative to the any type
- Summary
- Chapter 4: Components and Pages
- Technical requirements
- Creating components
- Communication between components - inputs and outputs
- Best practice - using the TrackBy property.
- Separating responsibilities - Smart and Presentation components
- Communication from the child component - using @Output
- Propagating events from nested components
- Summary
- Chapter 5: Angular Services and the Singleton Pattern
- Technical requirements
- Creating services
- Understanding the dependency injection pattern
- Using the inject() function
- Communication between components using services
- REST API consumption
- Summary
- Part 2: Leveraging Angular's Capabilities
- Chapter 6: Handling User Inputs: Forms
- Technical requirements
- Template-driven forms
- Reactive forms
- Data validation
- Custom validations
- Typed reactive forms
- Summary
- Chapter 7: Routes and Routers
- Technical requirements
- Routes and navigation
- Defining an error page and title
- Dynamic routes - wildcards and parameters
- Securing routes - guards
- Optimizing the experience - Resolve
- Summary
- Chapter 8: Improving Backend Integrations: the Interceptor Pattern
- Technical requirements
- Attaching the token to the request with an interceptor
- Changing the request route
- Creating a loader
- Notifying success
- Measuring the performance of a request
- Summary
- Chapter 9: Exploring Reactivity with RxJS
- Technical requirements
- Observables and operators
- Handling data - transformation operators
- Another way to subscribe - the async pipe
- Connecting information flows - high-order operators
- Optimizing data consumption - filter operators
- How to choose the correct operator
- Summary
- Part 3: Architecture and Deployment
- Chapter 10: Design for Tests: Best Practices
- Technical requirements
- What to test
- Service tests
- Fixing the tests and understanding TestBed
- Component testing
- E2E tests with Cypress
- Summary
- Chapter 11: Micro Frontend with Angular Elements
- Technical requirements.
- Micro frontend - concepts and application
- When to use a micro frontend
- When not to use a micro frontend project
- Slicing your application into micro frontends
- Creating a micro frontend application with standalone components
- Preparing a page to be loaded by the base application
- Dynamically loading micro frontends
- Summary
- Chapter 12: Packaging Everything - Best Practices for Deployment
- Technical requirements
- Deploying the backend
- Differentiating environments
- Preparing the production bundle
- Mounting a Docker image with Nginx
- Deploying a page to Azure Static Web Apps
- Summary
- Chapter 13: The Angular Renaissance
- Technical requirements
- Updating your project with the Angular CLI
- Using a new way to create templates - control flow
- Improving the user experience using the defer command
- Creating transitions between pages - view transactions
- Simplifying application states - Angular Signals
- Summary
- Index
- Other Books You May Enjoy.