Skip to content

Commit

Permalink
fix(cdk/clipboard): typo in injection token name (#21978)
Browse files Browse the repository at this point in the history
There was a typo in the name of the `CDK_COPY_TO_CLIPBOARD_CONFIG` token.

Fixes #21976.

(cherry picked from commit 1f69ff4)
  • Loading branch information
crisbeto authored and andrewseguin committed Feb 23, 2021
1 parent 3f1d041 commit b0fc1f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/cdk/clipboard/copy-to-clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ export interface CdkCopyToClipboardConfig {
}

/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
export const CKD_COPY_TO_CLIPBOARD_CONFIG =
new InjectionToken<CdkCopyToClipboardConfig>('CKD_COPY_TO_CLIPBOARD_CONFIG');
export const CDK_COPY_TO_CLIPBOARD_CONFIG =
new InjectionToken<CdkCopyToClipboardConfig>('CDK_COPY_TO_CLIPBOARD_CONFIG');

/**
* @deprecated Use `CDK_COPY_TO_CLIPBOARD_CONFIG` instead.
* @breaking-change 13.0.0
*/
export const CKD_COPY_TO_CLIPBOARD_CONFIG = CDK_COPY_TO_CLIPBOARD_CONFIG;

/**
* Provides behavior for a button that when clicked copies content into user's
Expand Down
2 changes: 2 additions & 0 deletions tools/public_api_guard/cdk/clipboard.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;

export declare class CdkCopyToClipboard implements OnDestroy {
attempts: number;
copied: EventEmitter<boolean>;
Expand Down

0 comments on commit b0fc1f0

Please sign in to comment.