This is the code repository for Accelerating Angular Development with Ivy, published by Packt.
A practical guide to building faster and more testable Angular apps with the new Ivy engine
Angular Ivy is the latest rendering engine and compiler introduced in Angular. Ivy helps frontend developers to make their Angular applications faster, better optimized, and more robust. This easy-to-follow guide will help you get to grips with the new features of Angular Ivy and show you how to migrate your Angular apps from View Engine to Ivy.
This book covers the following exciting features:
- Find out why Angular Ivy tests are faster and more robust
- Explore the concept of CSS custom properties and scoping of values and learn how to use them with Angular Ivy
- Use testing harnesses present in Angular components to write effective tests
- Explore the architecture of the Angular compatibility compiler and understand why it is important
- Discover effective techniques for migrating your existing Angular apps to the Ivy engine
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter01.
The code will look like the following:
function changeSettings(settings: {
sleepTimer: number;
volume: number;
}): void {
const volumeSetting = settings.volume ?? 0.5;
sendVolumeSignal(volumeSetting);
const sleepTimerSetting = settings.sleepTimer ?? 900;
sendSleepTimerSignal(sleepTimerSetting);
}
The following is what you need for this book:
This book is for experienced Angular web developers who want to migrate to the latest Ivy engine for building faster web applications. Intermediate knowledge of Angular and TypeScript will help you get the most out of this book.
With the following software and hardware list you can run all code files present in the book (Chapter 1-12).
Chapter | Software required | OS required |
---|---|---|
1-12 | Angular versions 9 through 12 | Windows, Mac OS X, and Linux (Any) |
1-12 | TypeScript versions 3.6 through 4.3 | Windows, Mac OS X, and Linux (Any) |
1-12 | Angular CLI | Windows, Mac OS X, and Linux (Any) |
1-12 | Angular CDK | Windows, Mac OS X, and Linux (Any) |
1-12 | Angular Google Maps | Windows, Mac OS X, and Linux (Any) |
1-12 | Angular Material | Windows, Mac OS X, and Linux (Any) |
1-12 | Angular YouTube Player | Windows, Mac OS X, and Linux (Any) |
Make sure to install a recent version of Angular CLI globally.
Feature app: Globalization
Feature app: Inheritance
Feature app: Style bindings
Feature app: Any provider scope
Feature app: Colored panels
Feature app: CSS Custom Properties
Feature app: Welcome
Feature app: Map
Feature app: Video
Real world app: Angular Academy
Feature app: Random number
Feature app: Feature flag initializer
Feature app: Feature flags
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Lars Gyrup Brink Nielsen is a frontend architect at Systemate A/S in Denmark. As a cofounder of the open learning non-profit This is Learning, he creates open platforms for free knowledge and public learning. Lars is a tech writer, international tech speaker, FOSS maintainer, Microsoft MVP in Developer Technologies, and GitHub Star.
Jacob Andresen works as a senior software developer based in Copenhagen, Denmark. He has been working as a software developer and consultant in information retrieval systems and web applications since 2002.