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
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Effective Angular
Effective Angular

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

Arrow left icon
Profile Icon Roberto Heckers
Arrow right icon
£16.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (13 Ratings)
Paperback Aug 2024 400 pages 1st Edition
eBook
£15.99 £23.99
Paperback
£29.99
Subscription
Free Trial
Renews at £16.99p/m
Arrow left icon
Profile Icon Roberto Heckers
Arrow right icon
£16.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (13 Ratings)
Paperback Aug 2024 400 pages 1st Edition
eBook
£15.99 £23.99
Paperback
£29.99
Subscription
Free Trial
Renews at £16.99p/m
eBook
£15.99 £23.99
Paperback
£29.99
Subscription
Free Trial
Renews at £16.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. £16.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781805125532
Vendor :
Google
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. £16.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

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
£16.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
£169.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
£234.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
Reactive Patterns with RxJS and Angular Signals
£26.99
Effective Angular
£29.99
Angular for Enterprise Applications
£37.99
Total £ 94.97 Stars icon

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 included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.