MCPcopy Create free account
hub / github.com/angular/components / beginCopy

Method beginCopy

src/cdk/clipboard/clipboard.ts:42–44  ·  view source on GitHub ↗

* Prepares a string to be copied later. This is useful for large strings * which take too long to successfully render and be copied in the same tick. * * The caller must call `destroy` on the returned `PendingCopy`. * * @param text The string to copy. * @returns the pending copy op

(text: string)

Source from the content-addressed store, hash-verified

40 * @returns the pending copy operation.
41 */
42 beginCopy(text: string): PendingCopy {
43 return new PendingCopy(text, this._document);
44 }
45}

Callers 3

copyMethod · 0.95
copyMethod · 0.80
clipboard.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected