Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Angular Design Patterns
Angular Design Patterns

Angular Design Patterns: Implement the Gang of Four patterns in your apps with Angular

Arrow left icon
Profile Icon Nayrolles Profile Icon Nayrolles Mathieu (USD)
Arrow right icon
€8.99 €19.99
Full star icon Half star icon Empty star icon Empty star icon Empty star icon 1.5 (2 Ratings)
eBook Jul 2018 178 pages 1st Edition
eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Nayrolles Profile Icon Nayrolles Mathieu (USD)
Arrow right icon
€8.99 €19.99
Full star icon Half star icon Empty star icon Empty star icon Empty star icon 1.5 (2 Ratings)
eBook Jul 2018 178 pages 1st Edition
eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Angular Design Patterns

Angular Bootstrapping

After Chapter 1, Typescript Best Practices, we can dive into Angular itself. One of the focuses of Angular was to drastically improve the performance and loading time of Angular applications compared to AngularJS. The performance improvements are outstanding. According to the Angular team and various benchmarks, Angular 2 is between five and eight times faster than Angular 1.

Now, to achieve this kind of improvement, Google engineers did not build upon AngularJS; instead, they created Angular from scratch. Consequently, having worked with Angular 1 for some time, this will not give you a sizable edge over newcomers to the Angular world when it comes to developing Angular applications.

In this chapter, we will do the following:

  • I will first present the major architectural concepts behind Angular.
  • Then, we will bootstrap an Angular application using the newly...

Architectural overview

In this section, I will present the main building blocks of Angular applications: Service, Component, Template, and Directive. We will also learn what problems are solved by dependency injection, decorators, and zones.

Now, if you picked this book off the (virtual) shelf, you likely have some experience with Angular and want to improve your applications with good practices and design patterns. Therefore, you should have some knowledge about the general architecture of Angular building blocks.

Nevertheless, a quick and pragmatic reminder should not hurt much, and we can be sure that we have a solid architectural basis to build our patterns upon.

Here is an overview of how the main Angular 2 building blocks interact with each other:

High-level architecture of an Angular 2 application

In what follows, I will present an example of each Angular 2 building block...

Angular CLI

The Angular CLI is a very simple, yet extremely useful, node package that takes the form of a command-line tool. The purpose of this tool is to take away most of the pain of getting started with Angular 2. The problem with any application based on a framework is to know how to bootstrap things for your code to communicate smoothly with the framework's features and libraries.

This tool, provided directly by the Angular team, provides working blueprints for ready-to-go applications. Indeed, by using one simple command we can generate a complete boilerplate for Angular that can be transpiled, run locally, tested, and even deployed to GitHub pages.

Installation

Installing the Angular CLI is dead simple as it&apos...

Summary

In this chapter, we have completed an overview of the Angular building blocks and seen how they interact with each other. We have also created a relatively simple application manipulating Floyd arrays. Finally, we learned how to use the Angular CLI to create new applications, components, services, directives, and pipes using the command line.

In the next chapter, we will focus on Angular good practices. We will discover the "do's and don'ts" recommended by Google engineers in a practical way.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • 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

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.

Who is this book for?

If you want to increase your understanding of Angular and apply it to real-life application development, then this book is for you.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 30, 2018
Length: 178 pages
Edition : 1st
Language : English
ISBN-13 : 9781786460790
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 30, 2018
Length: 178 pages
Edition : 1st
Language : English
ISBN-13 : 9781786460790
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 94.97
Mastering Angular Components
€32.99
Angular Design Patterns
€24.99
Architecting Angular Applications with Redux, RxJS, and NgRx
€36.99
Total 94.97 Stars icon
Banner background image

Table of Contents

8 Chapters
TypeScript Best Practices Chevron down icon Chevron up icon
Angular Bootstrapping Chevron down icon Chevron up icon
Classical Patterns Chevron down icon Chevron up icon
Navigational Patterns Chevron down icon Chevron up icon
Stability Patterns Chevron down icon Chevron up icon
Performance Patterns Chevron down icon Chevron up icon
Operation Patterns Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Half star icon Empty star icon Empty star icon Empty star icon 1.5
(2 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 50%
1 star 50%
aureliano sinatra Sep 01, 2018
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
We can just forget about the first 4chapters completely useless... Very basics examples
Amazon Verified review Amazon
Tarandeep Singh Aug 02, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
it does not have much content
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.