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 Empty star icon 4 (6 Ratings)
Paperback Jan 2025 486 pages 5th Edition
eBook
₹799.99 ₹2502.99
Paperback
₹3127.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 Empty star icon 4 (6 Ratings)
Paperback Jan 2025 486 pages 5th Edition
eBook
₹799.99 ₹2502.99
Paperback
₹3127.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
₹799.99 ₹2502.99
Paperback
₹3127.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. ₹800 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

Summary

That's it! Your journey to the world of Angular has just begun. Let's recap the features that you have learned so far. We learned what Angular is, looked over the brief history of the platform, and examined the benefits of using it for web development.

We saw how to set up our development workspace and find the tools to bring TypeScript into the game. We introduced the Angular CLI tool, the Swiss Army knife for Angular, that automates specific development tasks. We used some of the most common commands to scaffold our first Angular application. We also examined the structure of our application and learned how to interact with it.

Our first application gave us a basic understanding of how Angular works internally to render our application on a web page. We embarked on our journey, starting with the main HTML file of an Angular application. We saw how Angular parses that file and starts searching the component tree to load the main component. We learned the process of...

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...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore the basics of Angular 19 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

Angular is an extremely fast, cross-platform JavaScript framework loved by millions. Learning Angular is a comprehensive introduction to the framework from an experienced Angular developer and Google Developer Expert. You’ll learn the Angular way of development as you build a real-world app from the ground up. Updated for Angular 19, this fifth edition tackles landmark changes in Angular after the “Angular Renaissance”. It covers app creation with standalone components, Angular Signals, and the new control flow syntax, while acknowledging differences in approach in older Angular code. You’ll also find a brand-new chapter on optimizing performance with SSR and hydration, as well as revamped content on TypeScript. Angular developers of all experience levels will benefit from this book. It is especially useful if you are new to Angular, as it will help you get to grips with the bare bones of the framework. By the end of this book, you'll be able to create Angular applications with TypeScript from scratch and apply best practices in any Angular codebase.

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: 486 pages
Edition : 5th
Language : English
ISBN-13 : 9781835087480
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. ₹800 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: 486 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 ₹400 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 ₹400 each
Feature tick icon Exclusive print discounts

Table of Contents

16 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
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 Empty star icon 4
(6 Ratings)
5 star 50%
4 star 33.3%
3 star 0%
2 star 0%
1 star 16.7%
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
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
Salman Farsi Jan 12, 2025
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The Learning Angular provides a comprehensive introduction to Angular for both new and experienced developers. It begins with a foundational overview of Angular, covering its key features, such as its modular architecture, dependency injection, and CLI tools. The structured approach makes it easy to follow along, especially with chapters dedicated to TypeScript, a prerequisite for Angular development.Highlights include:- Clear explanations of Angular’s core concepts like components, directives, and services.- Practical guides for setting up the development environment using the Angular CLI.- Hands-on exercises in building, styling, and testing components.- Introduction to modern Angular features, including reactive programming and change detection strategies.The book's modular structure allows readers to learn progressively, with each chapter building on the previous one. It promises to help developers manage complex tasks, optimize performance, and create scalable applications.Overall, this resource is well-suited for developers aiming to master Angular’s latest features. Its clear writing style, practical examples, and up-to-date content make it a valuable learning companion. 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.