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
Conferences
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 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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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

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 : 9781805123002
Vendor :
Google
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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Aug 02, 2024
Length: 400 pages
Edition : 1st
Language : English
ISBN-13 : 9781805123002
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

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.