Page
1
(This page has no text content)
Page
2
Angular Projects Fourth Edition Learn Angular by building 10 real-world, enterprise web apps and projects Aristeidis Bampakos
Page
3
Angular Projects Fourth Edition Copyright © 2026 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Portfolio Director: Ashwin Nair Relationship Lead: Nitin Nainani Project Manager: Vishnu Priya R Content Engineer: Nisha Cleetus Technical Editor: Arjun Varma Copy Editor: Nisha Cleetus Indexer: Pratik Shirodkar Proofreader: Nisha Cleetus Production Designer: Ponraj Dhandapani Growth Lead: Priyadarshini Sharma Fourth edition: June 2026 Production reference: 1090626 Published by Packt Publishing Ltd. Grosvenor House 11 St Paul's Square Birmingham B3 1RB, UK. ISBN 978-1-80666-847-2 www.packtpub.com
Page
4
I would like to dedicate this book to my godparents, Michalis and Sofia, who are my source of inspiration and encouragement to pursue my dreams – Aristeidis Bampakos
Page
5
Foreword Today, Angular is experiencing a true "Renaissance." Despite its long history, the framework is more vibrant than ever. Staying current with its innovations is a stimulating challenge, but also a complex one. Having had the honor of reviewing the 2nd edition of this book, I have seen firsthand how Aristeidis has evolved this content to match the framework's pace. In this 4th edition, the author provides the essential tools to master the latest evolutions of the framework, from Server-Side Rendering (SSR) to State Management with Signals and the integration of modern UI libraries like PrimeNG, Telerik UI, and Angular Material. The true value of this book lies in its practical soul. While theory is the foundation, real-world confidence is built by solving diverse use cases. Aristeidis guides you through 10 modern projects that reflect the complexity of today's industry, whether it's building a QR-driven Warehouse App, a Smart Bug Tracking system or a Desktop Note-Taking desktop application. This hands-on approach ensures that even if a project seems "small," the experience gained is what transforms a junior developer into an expert professional. In a landscape dominated by Generative AI, domain knowledge is the only true competitive advantage. This book addresses this head-on. Aristeidis doesn't just teach you how to code; he teaches you how to use AI as a superpower. By exploring GitHub Copilot for best practices and integrating Firebase AI Logic and Google Genkit, you will learn to move from a passive user to a supervisor capable of guiding automation. My invitation to you is to experiment tirelessly. As you study the chapters, apply these concepts to create tools that support your daily work or your hobbies. Study, passion, and constant practice are the ingredients for success. Fabio Biondi FrontEnd and AI Gen - Developer and Instructor Google Developer Expert | Angular Founder of LearnByDo.ing
Page
6
Contributors About the author Aristeidis Bampakos has over 20 years of experience in the software development industry. He is a Greek national who currently works in Athens as a Web Development Team Leader at Plex- Earth, specializing in the development of web applications using Angular. He studied Computer Technology at the University of Portsmouth and in 2002 he was awarded the degree of Bachelor of Engineering with Second Class Honours (Upper Division). In 2004, he completed his MSc in Telecommunications Technology at Aston University. His career started as a C# .NET developer but he saw the potential of web development and moved toward it in early 2011. He began working with AngularJS, and Angular later on, and in 2020 he was officially recognized as a Google Developer Expert (GDE) for Angular. Aristeidis is passionate about helping the developer community learn and grow. His love for teaching has led him to become an award-winning author of Learning Angular and Angular Projects books. In his spare time, he enjoys being an occasional speaker in meetups, conferences, and podcasts where he talks about Angular.
Page
7
About the reviewers Paweł Czekaj is a Principal Software Engineer at Ziflow with over 16 years of professional experience in software development. He has been working with Angular since 2012, specializing in building large-scale frontend systems and application architectures. His expertise includes performance optimization, reactive programming with RxJS, state management, and deep knowledge of Angular internals. He also focuses on backend integration using Node.js and cloud- native architectures, working with AWS, Kubernetes, and CI/CD pipelines. He can be contacted at yadue.eu. Davide is a Senior Frontend Developer and Google Developer Expert (GDE) in Angular based in Rome, Italy. He has dedicated his career to mastering the Angular ecosystem, successfully architecting and implementing high-performance solutions, from responsive web interfaces to complex mobile and desktop applications. Beyond the code, he is a community builder at heart. He plays a pivotal role in the local tech scene, leading and managing developer communities to foster meaningful collaboration and professional growth. When he steps away from the screen, Davide balances the fast-paced nature of technology with the discipline of archery, a passion for video games, and a refined sense of humor expressed through memes.
Page
8
Table of Contents Preface xiii Free benefits with your book ............................................................................. xvii Chapter 1: Angular AI Kick-Starter: Scaffolding Smart Apps with Copilot 1 Technical requirements ........................................................................................ 2 Creating an Angular application ........................................................................... 2 Installing the Angular CLI • 2 Scaffolding a new application • 3 Angular tooling in VS Code ................................................................................... 4 Interacting with GitHub Copilot ........................................................................... 5 Customizing instructions • 6 Developing with prompts • 7 Summary ........................................................................................................... 10 Exercise .............................................................................................................. 10 Further reading .................................................................................................. 10 Chapter 2: IssueTracker Lite: Building a Smart Bug Tracking System 13 Technical requirements ....................................................................................... 13 Installing Clarity Design System .......................................................................... 14 Displaying issues overview ................................................................................. 18 Managing application state • 18 Displaying pending issues • 20 Reporting new issues .......................................................................................... 23 Designing the form • 24 Validating user input • 28 Adding new issues • 29
Page
9
Resolving issues ................................................................................................. 30 Summary ........................................................................................................... 35 Exercise .............................................................................................................. 35 Further reading .................................................................................................. 35 Chapter 3: EasyMenu: Creating a Table Order Management App 37 Technical requirements ...................................................................................... 37 Setting up data storage ....................................................................................... 38 Installing Angular Material ................................................................................. 39 Displaying tables ................................................................................................ 42 Managing orders ................................................................................................ 47 Creating orders • 48 Managing items • 53 Saving orders • 58 Summary ............................................................................................................ 61 Exercise ............................................................................................................... 61 Further reading ................................................................................................... 61 Chapter 4: SmartFactory Picker: Building a QR-Driven Warehouse App 63 Technical requirements ...................................................................................... 63 Setting up the items page .................................................................................... 64 Generating QR codes .......................................................................................... 69 Scanning items ................................................................................................... 74 Creating the picking list ..................................................................................... 79 Summary ........................................................................................................... 83 Exercise .............................................................................................................. 83 Further reading .................................................................................................. 83 Chapter 5: CityPass Parking: Developing an AI-Enabled Parking Validator 85 Technical requirements ...................................................................................... 85 Table of Contents viii
Page
10
Installing NG-ZORRO ......................................................................................... 86 Adding new tickets manually .............................................................................. 89 Creating a feature page • 89 Designing forms with NG-ZORRO • 91 Integrating template forms • 95 Adding new tickets with AI ................................................................................. 99 Setting up AI infrastructure • 101 Using Firebase AI Logic • 102 Designing the AI Creator • 106 Displaying registered cars ................................................................................... 111 Reviewing ticket details ..................................................................................... 117 Summary .......................................................................................................... 122 Exercise ............................................................................................................. 122 Further reading ................................................................................................. 122 Chapter 6: Studio BookMaster: Designing an AI-Enhanced Room Booking App 125 Technical requirements ..................................................................................... 126 Creating the backend ......................................................................................... 126 Integrating database access ............................................................................... 130 Installing PrimeNG ............................................................................................ 134 Creating reservations ........................................................................................ 138 Displaying available rooms ................................................................................ 151 Sending confirmation message .......................................................................... 153 Booking with AI ................................................................................................ 159 Adding GenKit to the API • 159 Creating an AI assistant • 161 Summary ......................................................................................................... 168 Exercise ............................................................................................................ 168 Further reading ................................................................................................ 168 171 ix Table of Contents
Page
11
Chapter 7: Expense Builder: Building an SSR Optimized Expense Tracker Technical requirements ..................................................................................... 171 Installing Angular Material ................................................................................ 172 Installing Angular SSR ....................................................................................... 174 Displaying building information ........................................................................ 179 Reporting expenses ........................................................................................... 185 Reporting standard expenses • 188 Reporting apartment expenses • 195 Summary .......................................................................................................... 199 Exercise ............................................................................................................ 200 Further reading ................................................................................................ 200 Chapter 8: SmartFactory Shifts: Creating a Drag-and-Drop Shift Scheduler 201 Technical requirements .................................................................................... 201 Installing Kendo UI .......................................................................................... 202 Adding new employees ..................................................................................... 205 Setting up storage • 206 Designing employee builder • 209 Assigning employees to a shift ........................................................................... 215 Moving employees through shifts ..................................................................... 225 Summary ......................................................................................................... 232 Exercise ............................................................................................................ 233 Further reading ................................................................................................ 233 Chapter 9: Flash POS: Building a Modern Point of Sale App with State Management 235 Technical requirements .................................................................................... 235 Installing PrimeNG ........................................................................................... 236 Displaying categories ....................................................................................... 238 Displaying items ............................................................................................... 241 Table of Contents x
Page
12
Displaying the shopping cart ............................................................................ 245 Summary ......................................................................................................... 252 Exercise ............................................................................................................. 253 Further reading ................................................................................................. 253 Chapter 10: NotesAI Desktop: Creating an AI Powered Note Editor 255 Technical requirements ..................................................................................... 255 Installing ngx-wig ............................................................................................. 255 Persisting data to the filesystem ........................................................................ 258 Augmenting content with AI .............................................................................. 261 Summary ......................................................................................................... 265 Exercise ............................................................................................................ 265 Further reading ................................................................................................ 265 Chapter 11: Unlock Access to the Code Bundle and the PDF Version 267 Unlock this book's free benefits in three easy steps ............................................ 268 Other Books You May Enjoy 273 Index 277 xi Table of Contents
Page
13
(This page has no text content)
Page
14
Preface Angular is a popular and modern JavaScript framework that can run on a wide range of platforms. It comes with a rich set of features right out of the box, along with a variety of development tools that make it appealing to the developer community. This updated fourth version of "Angular Projects" will teach you how to build efficient and optimized web applications in Angular using best practices and modern techniques. You will begin by exploring the essential features of the framework through the creation of 10 different real-world applications. Each application will demonstrate how to integrate various tools, including component UI libraries, backend technologies, AI agents, and native APIs. As you progress, you will learn how to implement popular technologies such as Angular Signals, Control Flow Syntax, Angular Server-Side Rendering (SSR), Firebase AI Logic, Google GenKit, native Web APIs, and more. You will work on projects such as an order management system, an AI-enabled booking system, a POS web application, and many other exciting projects, including a suite of software applications for factories. By the end of this book, you will have the skills needed to build real-world applications and enhance your development portfolio. Who this book is for This book is for developers with beginner-level Angular experience who want to become proficient in using essential tools and dealing with the various use cases in Angular. Beginner- level knowledge of web application development and basic experience working with the latest JavaScript or TypeScript is essential before you dive in. This book focuses on practical applications of Angular. If you want to deepen your understanding of this framework, we recommend that you also look at Learning Angular by the same author. What this book covers Chapter 1, Angular AI Kick-Starter: Scaffolding Smart Apps with Copilot, describes how to scaffold an Angular application from scratch, how to set up VSCode for Angular development, and how to use AI techniques by configuring GitHub Copilot to use modern Angular best practices. Chapter 2, IssueTracker Lite: Building a Smart Bug Tracking System, will show you how to build an issue tracking system where users will be able to add new issues to the system or resolve issues that have been completed.
Page
15
Chapter 3, EasyMenu: Creating a Table Order Management App, shows you how to build an application that helps a waiter take orders by selecting items from the main menu and associating orders with specific tables. Chapter 4, SmartFactory Picker: Building a QR-Driven Warehouse App, explores how to build an application to pick items in a Warehouse Management System (WMS) using QR codes to identify items. Chapter 5, CityPass Parking: Developing an AI-Enabled Parking Validator, explains how to build an application that traffic wardens can use to check if a car has the right to park in a specific location, either by filling a form or using an AI assistant. Chapter 6, Studio BookMaster: Designing an AI-Enhanced Room Booking App, explains how to build an application for booking rooms in a music studio, how to view free slots per room on a calendar, and how to make a new reservation. Chapter 7, Expense Builder: Building an SSR-Optimized Expense Tracker, covers the creation of an application for reporting expenses of an apartment building using specially designed forms. Chapter 8, SmartFactory Shifts: Creating a Drag-and-Drop Shift Scheduler, illustrates how to build a calendar-style application for shift managers using drag and drop functionality. Chapter 9, Flash POS: Building a Modern Point of Sale App with State Management, provides a starting point for building a POS application where users can select items per category and add them to a shopping cart. Chapter 10, NotesAI Desktop: Creating an AI-Powered Note Editor, explains how to use native Web APIs to build a web application that can save data offline and summarize it using AI. To get the most out of this book You will need a version of Angular 22 installed on your computer, preferably the latest one. All code examples have been tested using Angular 22.0.0 on Windows OS but they should work with any future release of Angular 22 as well. Download the example code files This book includes a complete downloadable code bundle containing all the example projects and files used throughout the chapters. We recommend downloading the bundle so you can follow along smoothly and experiment with the examples. Use the bundle as a practical starting point. Modify it, extend it, and apply what you learn by creating your own variations as you progress through the chapters. Get the code bundle Preface xiv
Page
16
If you bought the book directly from Packt: Go to packtpub.com Click your profile picture and select Your Orders Find this book and click Download Code If you bought this book from Amazon or any other channel partner: Go to packtpub.com/unlock or scan the following QR code Search for this book Sign up or log in to your free Packt account Upload your proof of purchase and download the code bundle locally Usage note: You're free to use and modify this code for personal learning and non-commercial projects. Conventions used There are a number of text conventions used throughout this book. CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example: " Open the app.ts file and create the following constructor to set the chapter title:" A block of code is set as follows: constructor() { this.chapterTitleService.setTitle( 'Chapter 3: EasyMenu' } 1. 2. 3. 1. 2. 3. 4. xv Preface
Page
17
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold: return this.http.post(this.apiUrl + '/reservations', { name, email, start: date, room } Any command-line input or output is written as follows: npm install genkit @genkit-ai/google-genai npm install @nestjs/config Bold: Indicates a new term, an important word, or words that you see on the screen. For instance, words in menus or dialog boxes appear in the text like this. For example: " Finally, we explored how to schedule working shifts using the scheduler component. In the next chapter, we will build a Point of Sales (POS) application for the retail sector." Get in touch Feedback from our readers is always welcome. General feedback: If you have questions about any aspect of this book or have any general feedback, please email us at customercare@packt.com and mention the book's title in the subject of your message. Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you reported this to us. Please visit http://www.packt.com/submit-errata, click Submit Errata, and fill in the form. Warnings or important notes appear like this. Note Tips and tricks appear like this. Tip Preface xvi
Page
18
Piracy: If you come across any illegal copies of our works in any form on the internet, we would be grateful if you would provide us with the location address or website name. Please contact us at copyright@packt.com with a link to the material. If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit http:// authors.packt.com/. Free benefits with your book This book includes free benefits designed to support your learning and help you apply what you learn effectively. Activate them now for instant access (see the How to unlock section for instructions). Here's a quick overview of what you can instantly unlock with your purchase: xvii Preface
Page
19
How to unlock Scan the QR code (or go to packtpub.com/unlock). Search for this book by name, confirm the edition, and then follow the steps on the page. Note: Have your invoice handy. Purchases made directly from the Packt website don't require an invoice. Preface xviii
Page
20
1 Angular AI Kick-Starter: Scaffolding Smart Apps with Copilot The most popular tool for creating and building Angular applications is the Angular command- line interface (CLI), which automates numerous development tasks, including scaffolding, testing, and deploying idx_780d4029 Angular applications. Web developers use artificial intelligence (AI) tools for assistive coding to complete tasks such as applying best idx_6277f6dd practices and searching for documentation. By the end of this chapter, you will be able to use AI coding assistants in an Angular project to improve your experience as a developer and make your Angular workflow more efficient. You will learn how idx_70f48d91 to use GitHub Copilot to build an Angular application using the latest features and modern practices of the Angular framework. We are going to cover the following topics: Creating an Angular application Angular tooling in VS Code Interacting with GitHub Copilot • • • Your purchase includes a free PDF copy + code bundle Your purchase includes a DRM-free PDF copy of this book, the code bundle, and additional exclusive extras. See the Free benefits with your book section in the Preface to unlock them instantly and maximize your learning. Note