Make the most of Angular by leveraging design patterns and best practices to build stable and high performing apps Key Features Get to grips with the benefits and applicability of using different design patterns in Angular with the help of real-world examples Identify and prevent comm
Angular Design Patterns: Implement the Gang of Four patterns in your apps with Angular
โ Scribed by Mathieu Nayrolles
- Publisher
- Packt Publishing
- Year
- 2018
- Tongue
- English
- Leaves
- 197
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Make the most of Angular by leveraging design patterns and best practices to build stable and high performing apps
Key Features
- Get to grips with the benefits and applicability of using different design patterns in Angular with the help of real-world examples
- Identify and prevent common problems, programming errors, and anti-patterns
- Packed with easy-to-follow examples that can be used to create reusable code and extensible designs
Book Description
This book is an insightful journey through the most valuable design patterns, and it will provide clear guidance on how to use them effectively in Angular. You will explore some of the best ways to work with Angular and how to use it to meet the stability and performance required in today's web development world. You'll get to know some Angular best practices to improve your productivity and the code base of your application.
We will take you on a journey through Angular designs for the real world, using a combination of case studies, design patterns to follow, and anti-patterns to avoid.
By the end of the book, you will understand the various features of Angular, and will be able to apply well-known, industry-proven design patterns in your work.
What you will learn
- Understand Angular design patterns and anti-patterns
- Implement the most useful GoF patterns for Angular
- Explore some of the most famous navigational patterns for Angular
- Get to know and implement stability patterns
- Explore and implement operations patterns
- Explore the official best practices for Angular
- Monitor and improve the performance of Angular applications
Who this book is for
If you want to increase your understanding of Angular and apply it to real-life application development, then this book is for you.
Table of Contents
- TypeScript Best Practices
- Angular Bootstrapping
- Classical Patterns
- Navigational Patterns
- Stability Patterns
- Performance Patterns
- Operation Patterns
โฆ Table of Contents
Title Page
Copyright and Credits
Angular Design Patterns
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
TypeScript Best Practices
Environment setup
Node.js and npm for Linux
TypeScript
Quick overview
Best practices
Naming
Interface redefinitions
Getters and setters
Constructor
Type guards
Enumerator
Pitfalls
Type-casting and JSON
Inheritance and polymorphism
Summary
Angular Bootstrapping
Architectural overview
Component
Services
Directives
Pipes
Routes
Angular CLI
Installation
Creating a new application
Generating
Serving
Deploying
Summary
Classical Patterns
Components
Singleton
Factory method
Observer
TypeScript observables with parameters
Observing HTTP responses
Implementation
Understanding the implementation
Promises
Summary
Navigational Patterns
MVC
Model-view-controller at large
Model-view-controller limitations for the frontend
Angular's model-view-controller
Redux
Summary
Stability Patterns
Timeouts
Circuit breaker
Factory
Memento
Summary
Performance Patterns
AJAX overkill
Proxy patterns
Loop count
Change detection and immutable states
Prototype and the reusable pool
Summary
Operation Patterns
General health metrics
Specific metrics
Error reporting
Method metrics with AOP
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
๐ SIMILAR VOLUMES
<p><b>Make the most of Angular by leveraging design patterns and best practices to build stable and high performing apps</b></p> <h4>Key Features</h4> <ul><li>Get to grips with the benefits and applicability of using different design patterns in Angular with the help of real-world examples </li> <li
Apress, 2016. โ 171 p. โ ISBN: 978-1-4842-1801-3.<br/> <br/>Design patterns are a popular topic in software development. A design pattern is a common, well-described solution to a common software problem. There is a lot of written material available on design patterns, but scattered and not in one s
<p>This book is about the 23 common GoF (Gang of Four) Design Patterns implemented and in Python.</p><p>A Design Pattern is a description or template that can be repeatedly applied to a commonly recurring problem in software design.</p><p>You will find a familiarity with Design Patterns very useful
1. Introduction -- 2. Observer Pattern -- 3. Singleton Pattern -- 4. Proxy Pattern -- 5. Decorator Pattern -- 6. Strategy Pattern (Or, Policy Pattern) -- 7. Template Method Pattern -- 8. Prototype Pattern -- 9. Adapter Pattern -- 10. Command Pattern -- 11. Iterator Pattern -- 12. Facade Pattern -- 1
1. Introduction -- 2. Observer Pattern -- 3. Singleton Pattern -- 4. Proxy Pattern -- 5. Decorator Pattern -- 6. Strategy Pattern (Or, Policy Pattern) -- 7. Template Method Pattern -- 8. Prototype Pattern -- 9. Adapter Pattern -- 10. Command Pattern -- 11. Iterator Pattern -- 12. Facade Pattern -- 1