From fc6fcbbdc08580c69e94e87ebaecbb11ad60d21f Mon Sep 17 00:00:00 2001 From: Kirill Cherkashin Date: Fri, 22 Apr 2022 07:53:06 -0400 Subject: [PATCH] docs(cdk/clipboard): add imports to samples (#21910) Some samples have been missing imports, which can confuse some devs. I added them. (cherry picked from commit 54cb83efc1f315af5dbbb817bca26bed09f3a1ea) --- src/cdk/clipboard/clipboard.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cdk/clipboard/clipboard.md b/src/cdk/clipboard/clipboard.md index ea311d0e507e..d1217a0349b7 100644 --- a/src/cdk/clipboard/clipboard.md +++ b/src/cdk/clipboard/clipboard.md @@ -18,6 +18,8 @@ The `Clipboard` service copies text to the user's clipboard. It has two methods: directly to place it on the clipboard. ```typescript +import {Clipboard} from '@angular/cdk/clipboard'; + class HeroProfile { constructor(private clipboard: Clipboard) {} @@ -34,6 +36,8 @@ the text that was buffered. Please note, if you call `beginCopy`, you must clean `PendingCopy` object by calling `destroy` on it after you are finished. ```typescript +import {Clipboard} from '@angular/cdk/clipboard'; + class HeroProfile { lifetimeAchievements: string;