Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Effective Angular
Effective Angular

Effective Angular: Develop applications of any size by effectively using Angular with Nx, RxJS, NgRx, and Cypress

eBook
$9.99 $31.99
Paperback
$39.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

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

Effective Angular

Scalable Front-End Architecture for Angular Applications

Angular is a powerful and extensive framework for building web applications. According to the 2023 Stack Overflow developer survey, it is the fourth most used web technology after ReactJS, NodeJS, and jQuery among professional developers. Due to the structure and tools it provides, Angular is often chosen when building large web applications or enterprise solutions comprised of several applications and libraries.

This book will guide you through the process of effectively using the Angular framework to develop and test applications of any size. You’ll start by learning about front-end architecture and setting up a scalable workspace with Nx that’s ready for hundreds of Angular applications. Next, you’ll explore the most powerful and newest features within the Angular framework. You’ll learn about reactive programming and state management using RxJS, Signals, and NgRx, and will be able to test Angular...

Technical requirements

By the end of this chapter, we will create an Nx monorepo with an Angular application and library in it. To follow along, you’ll need to install some tools. Note that we will only use freely available tools.

You will require the following:

  • Visual Studio Code (VS Code) as your integrated development environment (IDE)
  • Chrome web browser
  • Angular 17.1 or higher
  • NodeJS version v20.11.0 or higher
  • TypeScript version 5.3.3 or higher
  • Nx version v18.0.7 or higher

Throughout this book, we will use Angular 17.1, NodeJS 20.11.0, TypeScript 5.3.3, and Nx 18.0.7.

The GitHub repository for this book is available at https://github.com/PacktPublishing/Effective-Angular.

Understanding scalable front-end applications

Modern web applications are constantly getting bigger and more complex. Because of this, developing scalable front-end applications is more critical than ever. To create scalable front-end applications, we need to understand what scalability means in the context of a front-end application.

What is scalability?

The first thing that might come to mind when you hear the term scalability is handling more traffic. However, in the context of front-end applications, when talking about scalability, we mostly mean the scalability of the code base. Or, more concisely, the code is easy to extend, and modules or micro front-ends can be added to the software without much work. Components and libraries are reusable; the code is easy to maintain, test, and debug, even when the application grows. You can work with different teams on separate parts of the application, and onboarding new teams that write similar code is easy to achieve and enforce...

Different approaches to scaling front-end applications

When it comes to architecting software, it’s essential to think of what you are building, what it can grow into, what the context is, and who will work on it. Depending on these parameters, you’ll want to create an architecture that’s flexible enough to grow and adapt without overengineering it, making things more complex and time-consuming than needed.

For example, if you’re building a simple website for a small family-owned business, you don’t need elaborate architecture and complex design patterns; this will make things more complex and time-consuming than they need to be. The needs for the website will probably stay mostly the same, and the code base will remain small and manageable. But when you’re building enterprise software comprised of multiple applications, the needs and utility of those applications will change quite a bit, and you’ll want to ensure that the software...

What is Nx and why should you use it?

In this section, you will learn what Nx is and why it’s such a fantastic tool for developing Angular applications at scale. Nx is rapidly becoming the go-to tool for developing large monorepo front-end applications. So, what exactly is Nx and why should you use it?

Nx is a tool that helps you to speed up, streamline, and standardize your development, testing, build, and deployment process. The Nx tooling offers various features and integrations you can utilize during every stage of development. Nx was created so that you can adopt it incrementally by picking and choosing what you want to use or add to your current environment. At its core, Nx helps you with the following:

  • Speeding up the build and test times of your applications.
  • Managing dependencies and running tasks within monorepo projects.
  • Swiftly scaffolding new code snippets, applications, and libraries without needing to worry about configuring build tools.
  • ...

Setting up a scalable Angular workspace

In this final section, we will create an Nx monorepo, along with some placeholder Angular applications and libraries for demonstration purposes. We’ll start by adding some extensions in VS Code to make our developer experience more pleasant.

Add the following extensions:

  • Angular Essentials (version 16): Angular Essentials is comprised of eight different extensions that are useful for Angular development
  • Angular support
  • Nx console

Once you’ve installed these extensions, you will probably need to reload VS Code for all of them to be applied, so restart your VS Code application. After this, you should see an Nx icon on the left-hand side of VS Code; this is the Nx console. When you have successfully installed the various VS Code extensions, you must globally install the Nx and Cypress NPM packages. To do so, you can run the following command in the terminal of your choice. I like to use the integrated VS Code...

Summary

In this chapter, you created an Nx monorepo with some placeholder projects and are now ready to scale to hundreds of applications. You learned how to structure your Angular applications and libraries within the monorepo, and now know how to utilize the essential features of Nx.

In the next chapter, we will explore some of the newest and most powerful features in the Angular framework.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Implement design patterns and Nx for optimal maintainability and scalability of your code base
  • Explore reactive programming and state management using RxJS, Signals, and NgRx
  • Build and test large-scale Angular monorepo applications using Nx, Jest, and Cypress
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Angular is an open-source, front-end framework used to build web applications using TypeScript. Angular is a component-based framework, which means you build apps by developing and composing reusable components. This framework has all the built-in features needed to develop complex, feature-rich web apps. Written by an Angular specialist working with some of the top companies in the Netherlands, this book teaches you how to harness the full potential of the Angular framework. You’ll explore different front-end architecture designs and set up a scalable environment for Angular applications and libraries using Nx, before taking a deep dive into the framework's newest and most powerful features. Next, you’ll learn to manipulate the Document Object Model (DOM) with Angular directives, pipes, and animations, and build reusable components like a pro. The book spotlights best practices and flags potential pitfalls at every step of the way. You’ll also learn design patterns that fit well when using the Angular framework, reactive programming with RxJS and Angular signals, and how to manage application states effectively. The book teaches you about accessibility, testing, and optimizing your app for deployment. By the end of this book, you’ll be able to use Angular effectively to build enterprise-ready, scalable front-end applications.

Who is this book for?

If you are a front-end engineer ready to level up your Angular skills, then this book is for you. This book will help you learn how to build applications of any scale by utilizing the powerful features of the Angular framework. Basic knowledge of the Angular framework will enable you to grasp the concepts explained in this book, including the newest Angular features such as standalone components, Signals, control flow, front-end architecture, building Angular monorepo applications using Nx, reactive programming with RxJS, and managing application state with NgRx.

What you will learn

  • Create Nx monorepos ready to handle hundreds of Angular applications
  • Reduce complexity in Angular with the standalone API, inject function, control flow, and Signals
  • Effectively manage application state using Signals, RxJS, and NgRx
  • Build dynamic components with projection, TemplateRef, and defer blocks
  • Perform end-to-end and unit testing in Angular with Cypress and Jest
  • Optimize Angular performance, prevent bad practices, and automate deployments
Estimated delivery fee Deliver to Chile

Standard delivery 10 - 13 business days

$19.95

Premium delivery 3 - 6 business days

$40.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 02, 2024
Length: 400 pages
Edition : 1st
Language : English
ISBN-13 : 9781805125532
Vendor :
Google
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Chile

Standard delivery 10 - 13 business days

$19.95

Premium delivery 3 - 6 business days

$40.95
(Includes tracking information)

Product Details

Publication date : Aug 02, 2024
Length: 400 pages
Edition : 1st
Language : English
ISBN-13 : 9781805125532
Vendor :
Google
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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
$279.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 $ 125.97
Reactive Patterns with RxJS and Angular Signals
$35.99
Angular for Enterprise Applications
$49.99
Effective Angular
$39.99
Total $ 125.97 Stars icon
Banner background image

Table of Contents

17 Chapters
Part 1:Angular Basics and Setting Up Scalable Nx Workspaces Chevron down icon Chevron up icon
Chapter 1: Scalable Front-End Architecture for Angular Applications Chevron down icon Chevron up icon
Chapter 2: Powerful Angular Features Chevron down icon Chevron up icon
Chapter 3: Enhancing Your Applications with Directives, Pipes, and Animations Chevron down icon Chevron up icon
Chapter 4: Building Forms Like a Pro Chevron down icon Chevron up icon
Part 2:Handling Application State and Writing Cleaner, More Scalable Code Chevron down icon Chevron up icon
Chapter 5: Creating Dynamic Angular Components Chevron down icon Chevron up icon
Chapter 6: Applying Code Conventions and Design Patterns in Angular Chevron down icon Chevron up icon
Chapter 7: Mastering Reactive Programming in Angular Chevron down icon Chevron up icon
Chapter 8: Handling Application State with Grace Chevron down icon Chevron up icon
Part 3:Getting Ready for Production with Automated Tests, Performance, Security, and Accessibility Chevron down icon Chevron up icon
Chapter 9: Enhancing the Performance and Security of Angular Applications Chevron down icon Chevron up icon
Chapter 10: Internationalization, Localization, and Accessibility of Angular Applications Chevron down icon Chevron up icon
Chapter 11: Testing Angular Applications Chevron down icon Chevron up icon
Chapter 12: Deploying Angular Applications Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(13 Ratings)
5 star 84.6%
4 star 7.7%
3 star 0%
2 star 0%
1 star 7.7%
Filter icon Filter
Top Reviews

Filter reviews by




Tibi Oct 14, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is well-structured, covering a range of advanced topics with practical examples that make complex concepts easier to grasp.I found the chapters on optimizing performance and maintaining clean, scalable code particularly valuable. They gave me actionable insights that I could apply right away in my own projects. It’s not just about learning new techniques; it’s about adopting a mindset of continuous improvement in development.Roberto’s writing is clear and concise, making it suitable for both experienced developers and those looking to level up their Angular knowledge.From Cristi Calaras
Amazon Verified review Amazon
James Horsfall jr. Aug 12, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
If you’re serious about mastering Angular, this book is an investment in your skills that will pay off many times over. It’s detailed, it’s practical, and it’s exactly what you need to elevate your Angular projects.
Amazon Verified review Amazon
Lean Vilas Aug 02, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is packed with actionable advice, advanced patterns, and good practices for building robust and scalable Angular applications.
Amazon Verified review Amazon
serene boyland Aug 22, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a must have for those looking to expand their knowledge of Angular. Book is full of examples that makes it easy to follow along and learn new techniques. Thanks for providing this awesome book, I'm looking foward to more great content from this Author/Authors.
Amazon Verified review Amazon
Amazon Customer Aug 07, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
There is a lot that goes into a solid Angular application: state, structure, routing, style, tests, and accessibility to name a few. These aspects and more are fleshed out over the course of the book in a nice layered approach.The order of topics gets things right:1) Describe the foundation (Nx, modern Angular conventions like standalone/signals/etc),2) Go over different different possible patterns for setting up a code base, and then...3) Commit to some approaches and flesh out the app with the particulars (forms, tests, reactivity, and much more).The structure of the book also goes hand in hand with its foundation, built on Nx. The book's structure naturally falls into place with the progression of generating an app piece by piece with all the tools that it provides, but of course Roberto was truly the one at the wheel. Anyone could create an app step by step like this, but it takes a lot of context and experience to demonstrate the importance; context Roberto gives, from foreshadowing to demonstration and then reflection. For example, in the last year at work I have been very obsessed with reactivity. To be honest, I kind of build from the ground up with it in mind and sometimes look beyond the bigger picture. Roberto covers reactivity in the sort of depth I was hoping for, but doesn't start with it and focus solely on it. Reactivity is covered in detail in its own section at the right time and brought up as it is relevant, but it is just one of many pieces covered with the right breadth and depth that a solid foundation requires. Overall, the progression of the variety of Angular application functionality came across as quite natural and relevant.A solid solid foundation with both breadth and depth. Even though I don't use various libraries or paradigms covered in some parts, there is still takeaways to be made if you are looking for a comprehensive journey through making a solid Angular app. In short: this book is good stuff.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela