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
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Angular Projects
Angular Projects

Angular Projects: Learn Angular by building 10 real-world, enterprise web apps and projects , Fourth Edition

Arrow left icon
Profile Icon Aristeidis Bampakos
Arrow right icon
zł79.99 zł145.99
eBook Jun 2026 298 pages 4th Edition
eBook
zł79.99 zł145.99
Paperback
zł181.99
eBook + Subscription
Free Trial
Arrow left icon
Profile Icon Aristeidis Bampakos
Arrow right icon
zł79.99 zł145.99
eBook Jun 2026 298 pages 4th Edition
eBook
zł79.99 zł145.99
Paperback
zł181.99
eBook + Subscription
Free Trial
eBook
zł79.99 zł145.99
Paperback
zł181.99
eBook + Subscription
Free Trial

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
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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

Angular Projects

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 Angular applications. Web developers use artificial intelligence (AI) tools for assistive coding to complete tasks such as applying best 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 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.

Technical requirements

You can download the example project and code for this book by following the instructions in the Download the example code files section in the Preface of this book.

This chapter's code files are included in the downloadable code bundle.

Creating an Angular application

Every chapter of the book requires setting up a new Angular application. The standard tool for making an Angular application is the Angular CLI. It is an npm package that provides a command-line tool to scaffold and run an Angular application. In the following section, we will learn how to install it.

Installing the Angular CLI

Open a terminal window and run the following command to install the Angular CLI globally on your machine:

npm install -g @angular/cli

The preceding command will install the latest version of the Angular CLI, which is published on the npm registry by the Angular team.

In this book, we use the npm package manager due to its widespread adoption in the web development community. If you are using a different package manager, visit https://angular.dev/tools/cli/setup-local#install-the-angular-cli to learn more about how to install it.

To verify that you have installed version 22, run the following command in the same terminal window:

ng version

The output of the preceding command should indicate that the installed Angular CLI is version 22.

The examples demonstrated in this book have been developed and tested with version 22 of the Angular CLI.

If you have a different version installed, run the following command to install the correct one:

npm install -g @angular/cli@22

Your local environment is now configured with the Angular CLI, and you are ready to start building Angular applications. In the following section, you will use the Angular CLI to create a new application.

Scaffolding a new application

We use the Angular CLI by running the ng executable from a terminal window. It accepts an option as a parameter that defines the type of task we want to complete using the Angular CLI.

You can view a complete list of the supported options at https://angular.dev/cli.

The new option indicates that we want to scaffold a new Angular application:

  1. Run the following command in a terminal window:
    ng new my-app

    The preceding command will initiate a process that guides you in creating a new Angular application named my‑app. The process involves asking questions to provide more context in the CLI about the application you want to build.

  2. The first question is about what stylesheet format we would like to use in our application. The Angular CLI supports the following formats:
    • CSS
    • Tailwind CSS
    • Sass
    • Less

    Use the keyboard arrows to highlight the Sass (SCSS) option and press Enter.

  3. The next question is whether we want to configure the application for server-side rendering (SSR). Press Enter to skip this step. We will build an SSR-enabled application in Chapter 7, Expense Builder: Building an SSR-Optimized Expense Tracker.
  4. The last question prompts us to add an AI coding assistant to the Angular project. The Angular CLI supports a rich collection of AI tools. Select the GitHub Copilot option and press Enter.

The Angular CLI downloads and installs all necessary packages and creates default files for your Angular application. After finishing, the my‑app folder will contain a basic Angular application.

Execute the following command from a terminal window inside the my‑app folder to run your application:

ng serve 

The Angular CLI compiles the Angular application and starts a web server to host it. After successful compilation, you can preview the application by opening your browser and navigating to http://localhost:4200.

We now have a basic Angular application that will serve as the foundation for the projects we will build in the following chapters. In the next section, we will learn about the tools required to develop our Angular projects.

Angular tooling in VS Code

One of the most popular tools for developing with Angular is Visual Studio Code (VS Code). It contains a rich collection of extensions that we can install to enhance the developer experience with the Angular framework. We can find and install Angular extensions from the Extensions menu in the VS Code toolbar. In this section, we will use Profiles to install a curated collection of Angular extensions.

We add profiles from the Manage menu:

  1. Click on the button with the gear icon to access the Manage menu.
  2. Select the Profiles option from the pop-up menu.
  3. Click the down arrow in the New Profile button and select the From Template | Angular option. VS Code adds a new profile that contains settings and extensions useful for Angular development.
  4. Click the Create button to start the installation of the Angular profile. Depending on your VS Code configuration, you may be asked to allow the installation of third-party extensions.

The process will install extensions and configure VS Code according to the Angular profile. The profile can be enabled in the following ways:

  • Automatically: Check the Use this profile as the default for new windows to enable it for all VS Code windows by default
  • Manually: Use the Manage menu to switch to the Angular profile

It is recommended to use the manual approach if you are using VS Code to develop with other technology stacks in addition to Angular.

VS Code activates installed extensions when you enable the Angular profile. The projects that we will build in the following chapters do not use all of them. The most common ones are as follows:

  • Angular Language Service: This is developed and maintained by the Angular team, offering features such as code completion, navigation, and effective error diagnosis within Angular templates and classes.
  • Angular Schematics: This provides a way to create different parts of an Angular application through an intuitive user interface.
  • EditorConfig for VS Code: This can override VS Code settings such as indentation and spacing using a local configuration file.
  • Material Icon Theme: This extends the default VS Code icons by adding new ones that are based on Material Design Icons and the Angular framework.

VSCode uses the remaining extensions of the Angular profile according to the specific needs of an Angular application. For example, the Jest extension is helpful if you use the Jest test runner for unit testing. Similarly, the ESLint extension provides linting capabilities to an application when the ESLint library is installed.

We now have a basic configuration of VS Code that will help us develop Angular projects with confidence. In the following section, we will learn how to apply best practices in Angular development using AI assistive technology.

Interacting with GitHub Copilot

The latest version of VS Code includes a built-in integration of GitHub Copilot. We will learn how to use Copilot as an AI pair programmer and develop Angular applications in the following ways:

  • Smarter by providing instructions with Angular best practices in mind
  • Faster by building different parts of the Angular application using prompts

In the following sections, we will explore both concepts as we continue to develop our Angular application.

Customizing instructions

AI agents use instructions to define a working context and operate within specific boundaries. Instructions define the role and capabilities of the agent in the current context. The Angular CLI created an instructions file for Copilot while creating the application:

  1. Open VS Code and select File | Open Folder… from the main menu.
  2. Navigate to the my‑app folder and select it. VS Code will load the associated Angular CLI project.
  3. Expand the .github folder and select the copilot‑instructions.md file. The Markdown file contains instructions that help Copilot understand Angular.
  4. The top of the file defines the role of the AI agent:
    You are an expert in TypeScript, Angular, and scalable web application development. You write functional, maintainable, performant, and accessible code following Angular and TypeScript best practices.
  5. Each heading in the file represents a different capability of the agent. For example, the agent should adhere to the following TypeScript best practices:
    ## TypeScript Best Practices
    
    - Use strict type checking
    - Prefer type inference when the type is obvious
    - Avoid the `any` type; use `unknown` when type is uncertain
  6. We can customize the instructions file according to our needs. Add the following in the State Management heading:
    - Define signal properties as `readonly`

    The preceding instruction will guide Copilot to declare signals with the readonly keyword.

The Markdown format of the instructions file makes it accessible to all developers. You now understand how easy it is to extend it and share it with other members of your development team. In the following section, we will learn how Copilot uses instructions to interact with our Angular application.

Developing with prompts

GitHub Copilot is pre-installed and enabled by default in the latest version of VS Code. It opens automatically in the CHAT side panel when we load an Angular application.

If the panel is not opened, you can use the Toggle Chat button in the top bar near the search input.

The CHAT panel features a welcome screen and an input box that allows us to interact with Copilot using prompts:

Figure 1.1 – GitHub Copilot

Figure 1.1 – GitHub Copilot

First, we will use Copilot to refactor the existing code base of the Angular application.

AI agents are not deterministic, which means their responses may vary in every run. The steps that you will follow in this section may result in a different output than the one described in the section.

We will create a new property in the App component class for chapter titles:

  1. Enter the following phrase in the input box of Copilot and click the Send button:
    Create a signal in the App component for storing the chapter title with the following value: Chapter 1: Angular AI Kick-Starter.
  2. You must sign in to Copilot before starting to interact with it. Select a sign-in method in the following dialog:
    Figure 1.2 – Sign in to use GitHub Copilot

    Figure 1.2 – Sign in to use GitHub Copilot

    After the sign-in process is complete, Copilot creates a chapterTitle property in the App component class.

  3. Copilot follows up on our prompt with a suggestion to update the chapter title in the component template.

    Enter the following prompt:

    Update the title in the template according to the chapter title.

    Copilot changes the line in the template file that displayed the title property to the following:

    <h1>{{ chapterTitle() }}</h1>
  4. Run the application using the ng serve command and navigate to localhost:4200:
    Εικόνα που περιέχει κείμενο, στιγμιότυπο οθόνης, γραμματοσειρά, σχεδίαση

Το περιεχόμενο που δημιουργείται από AI ενδέχεται να είναι εσφαλμένο.

    Figure 1.3 – Application output

You have learned how to refactor an existing Angular application without needing to interact with the code. Copilot did all the required work using prompts.

We can use Copilot for more complicated tasks, such as creating new components and services:

  1. Click the plus button located in the header of the CHAT panel to create a new Copilot session.
  2. Enter the following prompt in the input box:
    Create a component responsible for displaying the chapter title and use it in the App component.

    The previous prompt will create a new component based on the Components best practices from the instructions file.

  3. The new component passes the value of the chapterTitle property using an input signal. Examine the browser to verify that the application output is still the same.

You now understand how much faster it is to develop Angular applications with Copilot. We learned how to create a component without using the Angular CLI. You can use the same process to generate different parts of an Angular application, such as services and directives.

Summary

In this chapter, we learned how to build an Angular application with AI assistive technology. We kick-started the project by installing the Angular CLI and scaffolding a new application. We created a VS Code profile to leverage Angular extensions during development. We used the integrated chat to let GitHub Copilot assist us while writing new code or refactoring existing code.

We now have all the required tools for building our first real-world application in the next chapter, in which we will develop a tracking system to manage and report issues.

Exercise

Use GitHub Copilot to create an Angular service that contains the current chapter title. Modify the App component so that it uses the service to pass the chapter title to the respective component.

Try experimenting with different prompts to see how the results vary for each one.

Further reading

 

Get this book's PDF copy, code bundle, and more

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.

Image

Image

Note: Have your invoice handy. Purchases made directly from the Packt website don't require an invoice.

 

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Master a suite of hands-on solutions and leave with a hiring-ready portfolio that proves job-ready skills
  • Deliver fast and ship with confidence; from SSR/SSG to performance gains and reliable UI stacks
  • Add focused AI features like OCR, summaries, and assistants where they help most

Description

Angular has evolved toward faster delivery, server rendering, and an enhanced developer experience. This book shows what that looks like in practice. Each project reflects how real teams work: forms, routing, data, and the small choices that make an app feel finished. You will build with just enough tech to matter: signals, template-driven and reactive forms; PrimeNG, Angular Material, and Telerik UI; Google Maps; drag-and-drop; and desktop features. You will also wire up backend NestJS with MongoDB, Firebase services, and email notifications, then improve delivery with SSR and SSG and focused Core Web Vitals improvements. Guided by Aristeidis Bampakos, a Google Developer Expert for Angular and an experienced team lead, you will learn practical patterns you can apply right from the get-go. By the end, you will not just “know” Angular. You will think like a front-end engineer who can deliver, portfolio in hand, job-ready and confident to level up in your current role.

Who is this book 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 of working with 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 from the same author.

What you will learn

  • Scaffold faster and refactor safely with AI-assisted workflows
  • Design trustworthy forms users can complete without friction
  • Add AI: summaries, and assistant-driven booking
  • Integrate real services: Maps, email, Firebase, MongoDB
  • Ship quickly with SSR/SSG and Core Web Vitals improvements
  • Build maintainable UIs with PrimeNG, Material, Telerik

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 22, 2026
Length: 298 pages
Edition : 4th
Language : English
ISBN-13 : 9781806668465
Vendor :
Google
Category :
Languages :
Tools :

What do you get with eBook?

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

Billing Address

Product Details

Publication date : Jun 22, 2026
Length: 298 pages
Edition : 4th
Language : English
ISBN-13 : 9781806668465
Vendor :
Google
Category :
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 zł20 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 zł20 each
Feature tick icon Exclusive print discounts

Table of Contents

13 Chapters
Chapter 1: Angular AI Kick-Starter: Scaffolding Smart Apps with Copilot Chevron down icon Chevron up icon
Chapter 2: IssueTracker Lite: Building a Smart Bug Tracking System Chevron down icon Chevron up icon
Chapter 3: EasyMenu: Creating a Table Order Management App Chevron down icon Chevron up icon
Chapter 4: SmartFactory Picker: Building a QR-Driven Warehouse App Chevron down icon Chevron up icon
Chapter 5: CityPass Parking: Developing an AI-Enabled Parking Validator Chevron down icon Chevron up icon
Chapter 6: Studio BookMaster: Designing an AI-Enhanced Room Booking App Chevron down icon Chevron up icon
Chapter 7: Expense Builder: Building an SSR Optimized Expense Tracker Chevron down icon Chevron up icon
Chapter 8: SmartFactory Shifts: Creating a Drag-and-Drop Shift Scheduler Chevron down icon Chevron up icon
Chapter 9: Flash POS: Building a Modern Point of Sale App with State Management Chevron down icon Chevron up icon
Chapter 10: NotesAI Desktop: Creating an AI Powered Note Editor Chevron down icon Chevron up icon
Chapter 11: Unlock Access to the Code Bundle and the PDF Version Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
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.

Modal Close icon
Modal Close icon