Accelerating Angular Development with Ivy A practical guide to building faster and more testable Angular apps with the new Ivy engine

Get a comprehensive introduction to the major Angular framework rewrite known as Angular Ivy Key Features Upgrade your Angular applications from traditional View Engine to modern Angular IvyGet a detailed walkthrough of the new features and breaking changes in AngularExplorer new Angular APIs, synta...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Nielsen, Lars Gyrup Brink, Carniatto, Mateus, Andresen, Jacob
Format: E-Book
Sprache:Englisch
Veröffentlicht: Birmingham Packt Publishing 2021
Packt Publishing, Limited
Packt Publishing Limited
Ausgabe:1
Schlagworte:
ISBN:9781800205215, 180020521X
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Inhaltsangabe:
  • Table of Contents Discovering New APIs and Language SyntaxBoosting Developer Productivity Through Tooling, Configuration, and ConvenienceIntroducing CSS Custom Properties and New Provider ScopesExploring Angular Components FeaturesUsing CSS Custom PropertiesUsing Angular Components Component HarnessesAdditional Provider Scopes Debugging with the New Ivy Runtime APIsUsing the Angular Compatibility CompilerMigrating your Angular Application from View Engine to IvyEmbracing Ahead-of-Time Compilation
  • Improving the Angular Compatibility Compiler in your CI/CD workflow -- Targeting a single application in a monorepo workspace -- Summary -- Chapter 11: Migrating Your Angular Application from View Engine to Ivy -- Technical requirements -- Learning the Angular update process -- The Angular Update Guide -- Managing Angular dependencies -- Performing automated Angular Ivy migrations -- Making the most of the ng update command -- Reviewing automated Angular Ivy migrations -- Performing manual Angular Ivy migrations -- Managing initial navigation -- Optimizing change detection by configuring NgZone -- Improving unit test type safety with TestBed.inject -- Summary -- Chapter 12: Embracing Ahead-of-Time Compilation -- Technical requirements -- Using the ahead-of-time compiler for all development phases -- Ahead-of-time compilation for builds -- Ahead-of-time compilation for component templates -- Ahead-of-time compilation for unit tests -- Ahead-of-time compilation for the runtime -- Dealing with the ahead-of-time compiler's limitations -- Providing values using functions -- Declaring metadata using functions -- Using tagged template literals in component templates -- Initializing metadata variables -- Initializing asynchronous dependencies -- Providing an asynchronous dependency with a static platform provider -- Resolving an asynchronous dependency with an application initializer -- Summary -- Other Books You May Enjoy -- Index
  • Angular Google Maps components -- Getting started -- The GoogleMap component -- The MapMarker component -- The MapMarkerClusterer component -- The MapInfoWindow component -- The Clipboard API -- The CdkCopyToClipboard directive -- The Clipboard service -- The PendingCopy class -- Testing as a user with component harnesses -- Harness environments and harness loaders -- Component harnesses -- Summary -- Chapter 5: Using CSS Custom Properties -- Technical requirements -- Building a theme picker using custom CSS properties -- Implementing the theme service -- Controlling CSS Grid templates using custom CSS properties -- Summary -- Chapter 6: Using Angular Components -- Understanding the Angular Academy application -- Dividing the application into components -- Including dependencies using modules -- Retrieving data using services -- Wiring up navigation -- Showing course videos using the Angular YouTube Player -- Finding your school using the Angular Google Maps component -- Summary -- Chapter 7: Component Harnesses -- Using Angular Material's component harnesses -- Creating a component harness -- Summary -- Chapter 8: Additional Provider Scopes -- Revisiting the root provider scope -- Using the any provider scope for a configurable ThemeService -- Sharing information across application boundaries using the platform provider scope -- Summary -- Chapter 9: Debugging with the New Ivy Runtime APIs -- Technical requirements -- Introducing the new Ivy runtime API -- Inspecting a component instance -- Inspecting event listeners -- DOM event listeners -- Custom component event bindings -- Inspecting an embedded view context -- Summary -- Chapter 10: Using the Angular Compatibility Compiler -- Technical requirements -- Introducing the Angular Compatibility Compiler -- Using the Angular Compatibility Compiler -- Angular Compatibility Compiler options
  • Cover -- Title Page -- Copyright and Credits -- Foreword -- Contributors -- Table of Contents -- Preface -- Chapter 1: Discovering New APIs and Language Syntax -- Technical requirements -- Modernizing your code with powerful language features -- The optional chaining operator -- The nullish coalescing operator -- Handling nullish values with the new operators -- Native private class members -- Optimizing regional support with improved globalization APIs -- Bundling localizations -- Lazy loading locale data -- Dynamically setting the dir attribute based on locale direction -- Art direction using the directionality query -- Enhancing tests with stronger types and new APIs -- Resolving strongly typed dependencies with TestBed.inject -- Stubbing custom Angular Material SVG icons with FakeMatIconRegistry -- Summary -- Chapter 2: Boosting Developer Productivity Through Tooling, Configuration, and Convenience -- Technical requirements -- Using predictable style bindings -- Outputting faster and smaller bundles with AOT compilation -- Taking advantage of strict mode and other new configurations -- Strict mode -- Angular compiler options -- Enhancing our Angular testing experience -- Expect error compiler annotation -- Faster tests with AOT compilation -- Leveling up our developer experience -- Improved compilation errors -- Strict template type checking -- An even better update experience -- Better IDE integration -- Summary -- Chapter 3: Introducing CSS Custom Properties and New Provider Scopes -- Technical requirements -- Using CSS Custom Properties with Angular -- Discovering the any and platform provider scopes -- The any provider scope -- The platform provider scope -- Summary -- Chapter 4: Exploring Angular Components Features -- Technical requirements -- Angular YouTube Player -- Getting started -- Usage -- API reference
  • Accelerating Angular Development with Ivy: A practical guide to building faster and more testable Angular apps with the new Ivy engine