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

Learning Angular: A practical guide to building web applications with modern Angular , Fifth Edition

Arrow left icon
Profile Icon Aristeidis Bampakos
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1 (7 Ratings)
Paperback Jan 2025 494 pages 5th Edition
eBook
$31.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Aristeidis Bampakos
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1 (7 Ratings)
Paperback Jan 2025 494 pages 5th Edition
eBook
$31.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$31.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.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

Learning Angular

JavaScript essentials

JavaScript is a programming language that contains many features for building web applications. In this section, we will revisit and refresh our knowledge of some of the most basic ones as they are directly correlated with TypeScript and Angular development. TypeScript is a syntactic superset of JavaScript, meaning that it adds features such as types, interfaces, and generics. We will look at the following JavaScript features in more detail:

  • Variable declaration
  • Function parameters
  • Arrow functions
  • Optional chaining
  • Nullish coalescing
  • Classes
  • Modules

You can run all the code samples in this section in the following ways:

  • Enter the code in a browser console window
  • Type the code in a JavaScript file and use Node.js to execute it

If you are comfortable with these features, you can skip directly to the What is TypeScript? section.

Variable declaration

Traditionally...

What is TypeScript?

Transforming small web applications into thick monolithic clients was impossible due to the limitations of earlier JavaScript versions. In a nutshell, large-scale JavaScript applications suffered from serious maintainability and scalability problems as soon as they grew in size and complexity. This issue became more relevant as new libraries and modules required seamless integration into our applications. The lack of proper mechanisms for interoperability led to cumbersome solutions.

To overcome those difficulties, Microsoft built a superset of the JavaScript language that would help build enterprise applications with a lower error footprint using static type checking, better tooling, and code analysis. TypeScript 1.0 was introduced in 2014. It ran ahead of JavaScript, implemented the same features, and provided a stable environment for building large-scale applications. It introduced optional static typing through type annotations, thereby ensuring type checking...

Getting started with TypeScript

The TypeScript language is an npm package that can be installed from the npm registry using the following command:

npm install -g typescript

In the preceding command, we chose to install TypeScript globally in our system so that we can use it from any path in our development environment. Let’s see how we can use TypeScript through a simple example:

  1. Open VSCode and select File | New File… from the main menu options.
  2. Enter app.ts in the New File… dialog and press Enter.

Figure 2.1: New File… dialog

As we have already learned, TypeScript files have a .ts extension.

  1. Select the path where you want to create the new file. VSCode will then open that file inside the editor.
  2. Type the following snippet into the app.ts file:
    const title = 'Hello TypeScript!';
    

Although we have created a TypeScript file, the preceding snippet is valid JavaScript...

Getting started with TypeScript

The TypeScript language is an npm package that can be installed from the npm registry using the following command:

npm install -g typescript

In the preceding command, we chose to install TypeScript globally in our system so that we can use it from any path in our development environment. Let’s see how we can use TypeScript through a simple example:

  1. Open VSCode and select File | New File… from the main menu options.
  2. Enter app.ts in the New File… dialog and press Enter.

Figure 2.1: New File… dialog

As we have already learned, TypeScript files have a .ts extension.

  1. Select the path where you want to create the new file. VSCode will then open that file inside the editor.
  2. Type the following snippet into the app.ts file:
    const title = 'Hello TypeScript!';
    

Although we have created a TypeScript file, the preceding snippet is valid JavaScript...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore the basics of Angular development, from components and templates to forms, routing, and services
  • Get up to speed with the new paradigms modern Angular brings, including standalone APIs, new control flow syntax, Signals, and server-side rendering (SSR)
  • Discover best practices for building, deploying, debugging, and testing Angular applications

Description

Dive into Angular Development — With the Most Trusted Guide in the Industry Angular is one of the most powerful and widely adopted JavaScript frameworks, and Learning Angular is your go-to guide for building real-world, production-ready web applications. Written by a seasoned Angular developer and Google Developer Expert, this hands-on book takes you through every step of modern frontend development. This edition reflects the latest “Angular Renaissance,” covering standalone components, Angular Signals, and the new control flow syntax, while showing you how to integrate with legacy code. A new chapter also explores boosting performance with server-side rendering (SSR) and hydration. More than just a tutorial, Learning Angular builds your confidence chapter by chapter from scaffolding your first project to deploying it, with TypeScript best practices throughout. Whether you’re new to Angular or sharpening your skills, this book provides a complete path to becoming a productive, future-ready Angular developer. By the end, you’ll be able to build Angular apps from scratch, with clarity, structure, and confidence.

Who is this book for?

This book is for JavaScript developers and web developers dipping their feet for the first time in the world of frontend development with Angular, as well as those migrating to the Angular framework to build professional web applications. Current Angular developers looking to catch up with modern Angular will also find this book useful. You'll need prior exposure to JavaScript and a solid foundation in the basics of web programming before you get started with this book.

What you will learn

  • Use the Angular CLI to scaffold, build, and deploy new Angular applications
  • Create Angular applications using standalone APIs
  • Build rich components with Angular template syntax
  • Apply reactivity patterns with the RxJS library and Signals
  • Craft beautiful user interfaces using Angular Material
  • Create HTTP data services to access APIs and provide data to components
  • Improve your debugging and error handling skills during runtime and development
  • Optimize application performance with SSR and hydration techniques

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 09, 2025
Length: 494 pages
Edition : 5th
Language : English
ISBN-13 : 9781835087480
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.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 : Jan 09, 2025
Length: 494 pages
Edition : 5th
Language : English
ISBN-13 : 9781835087480
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

18 Chapters
Building Your First Angular Application Chevron down icon Chevron up icon
Introduction to TypeScript Chevron down icon Chevron up icon
Structuring User Interfaces with Components Chevron down icon Chevron up icon
Enriching Applications Using Pipes and Directives Chevron down icon Chevron up icon
Managing Complex Tasks with Services Chevron down icon Chevron up icon
Reactive Patterns in Angular Chevron down icon Chevron up icon
Tracking Application State with Signals Chevron down icon Chevron up icon
Communicating with Data Services over HTTP Chevron down icon Chevron up icon
Navigating through Applications with Routing Chevron down icon Chevron up icon
Collecting User Data with Forms Chevron down icon Chevron up icon
Handling Application Errors Chevron down icon Chevron up icon
Introduction to Angular Material Chevron down icon Chevron up icon
Unit Testing Angular Applications Chevron down icon Chevron up icon
Bringing Applications to Production Chevron down icon Chevron up icon
Optimizing Application Performance Chevron down icon Chevron up icon
Unlock Your Book’s Exclusive Benefits Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index 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.1
(7 Ratings)
5 star 57.1%
4 star 28.6%
3 star 0%
2 star 0%
1 star 14.3%
Filter icon Filter
Top Reviews

Filter reviews by




Oleksandr Zinchenko Jan 23, 2025
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Feefo Verified review Feefo
Chris S. Jan 11, 2025
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Aristeidis has done a great job of taking someone from little to no knowledge Angular to being able to understand how to build a great project from start to finish. Even having worked in Angular for several years I found a few pieces in the first couple of chapters that I had not seen before that I look forward to bringing into my own projects. You could be a first day developer and being able to work through this book and be able to understand the concepts being presented fairly easily, in my opinion, and should be a great place to start with Angular for anyone just getting going. Clear, concise, and helpful the whole way through. Read more
Amazon Verified review Amazon
Nikhil Matolia Jan 11, 2025
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book provides a clear and concise explanation of key concepts, making it easy to follow along. Highly recommended! Read more
Amazon Verified review Amazon
N/A Jul 19, 2025
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It's a well done book it cover all concepts of Angular framework needed in development application.
Feefo Verified review Feefo
Michael S Jan 15, 2025
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This new edition is one of the most approachable overview books for Angular I have seen in the modern era. I think this would be a great book for people looking to get into Angular fresh, whether you come from other frameworks or are fresh with frontend with some basics or are getting back to Angular since many versions ago. The review of JS and then TS essentials was a good refresher and something I wish I went over when I started. The follow along project felt realistic and was nice to iterate new ideas upon. And the pacing didn't feel too fast or too slow. My one criticism is that some state assignments done in ngOnInit blocks could be lifted out directly to component variable declarations, but anyone starting from this book would already be ahead of the curve. Read more
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.

Modal Close icon
Modal Close icon