Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Accelerating Angular Development with Ivy
  • Table Of Contents Toc
  • Feedback & Rating feedback
Accelerating Angular Development with Ivy

Accelerating Angular Development with Ivy

By : Nielsen, Carniatto, Andresen
4.5 (10)
close
close
Accelerating Angular Development with Ivy

Accelerating Angular Development with Ivy

4.5 (10)
By: Nielsen, Carniatto, Andresen

Overview of this book

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. You'll begin by learning about the most popular features of Angular Ivy with the help of simple stand-alone examples and realize its capabilities by working on a real-world application project. You'll then discover strategies to improve your developer workflow through new debugging APIs, testing APIs, and configurations that support higher code quality and productive development features. Throughout the book, you'll explore essential components of Angular, such as Angular Component Dev Kit (CDK), Ahead-of-time (AOT) compilation, and Angular command line interface (CLI). Finally, you'll gain a clear understanding of these components along with Angular Ivy which will help you update your Angular applications with modern features. By the end of this Angular Ivy book, you will learn about the core features of Angular Ivy, discover how to migrate your Angular View Engine application, and find out how to set up a high-quality Angular Ivy project.
Table of Contents (14 chapters)
close
close

The Clipboard API

The Angular CDK's Clipboard API offers a directive and a service to interact with the operating system's clipboard through the browser. The CdkCopyToClipboard directive can be used declaratively while the Clipboard service is used for use cases where a programmatic API is a better fit. The Clipboard API additionally takes care of long texts through the PendingCopy class.

In this section, you will learn how to use each of these classes from the Angular CDK package.

The CdkCopyToClipboard directive

The CdkCopyToClipboard directive is exported by ClipboardModule, which is in the @angular/cdk/clipboard sub-package. Its directive selector is [cdkCopyToClipboard]. The directive has an input property of the same name as the directive, which accepts the text that is copied when the element it is attached to is clicked.

Because of browser security concerns, copying text to the clipboard must be done following a click event triggered by a user.

The...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY