Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
$44.99
Paperback Jun 2026 298 pages 4th Edition
eBook
$26.99 $35.99
Paperback
$44.99
eBook + Subscription
$24.99 Monthly
Arrow left icon
Profile Icon Aristeidis Bampakos
Arrow right icon
$44.99
Paperback Jun 2026 298 pages 4th Edition
eBook
$26.99 $35.99
Paperback
$44.99
eBook + Subscription
$24.99 Monthly
eBook
$26.99 $35.99
Paperback
$44.99
eBook + Subscription
$24.99 Monthly

What do you get with a Packt Premium Subscription?

Subscribe today for full access to all titles. After checkout, you’ll receive an eBook credit that you can manually redeem on any title — including this one.
Product feature icon Access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon Weekly additions on emerging tech 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 A monthly credit and 50% off any future digital purchases.
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 : 9781806668472
Vendor :
Google
Category :
Languages :
Tools :

What do you get with a Packt Premium Subscription?

Subscribe today for full access to all titles. After checkout, you’ll receive an eBook credit that you can manually redeem on any title — including this one.
Product feature icon Access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon Weekly additions on emerging tech 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 A monthly credit and 50% off any future digital purchases.

Product Details

Publication date : Jun 22, 2026
Length: 298 pages
Edition : 4th
Language : English
ISBN-13 : 9781806668472
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 $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

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

What is included in a Packt Premium 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

What are credits? Chevron down icon Chevron up icon

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’. You'll get one to use immediately after checkout, and then every time you renew. You require an active subscription to use your credits, once used you keep the title forever.

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. You can cancel at anytime, you will keep access for the remaining period you have paid for. On the date of cancellation you will lose all access to online content, along with any unused 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.

Modal Close icon
Modal Close icon