Skip to content

Commit fc6fcbb

Browse files
kirjsandrewseguin
authored andcommitted
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 54cb83e)
1 parent b16a33d commit fc6fcbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdk/clipboard/clipboard.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ The `Clipboard` service copies text to the user's clipboard. It has two methods:
1818
directly to place it on the clipboard.
1919

2020
```typescript
21+
import {Clipboard} from '@angular/cdk/clipboard';
22+
2123
class HeroProfile {
2224
constructor(private clipboard: Clipboard) {}
2325

@@ -34,6 +36,8 @@ the text that was buffered. Please note, if you call `beginCopy`, you must clean
3436
`PendingCopy` object by calling `destroy` on it after you are finished.
3537

3638
```typescript
39+
import {Clipboard} from '@angular/cdk/clipboard';
40+
3741
class HeroProfile {
3842
lifetimeAchievements: string;
3943

0 commit comments

Comments
 (0)