
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
angular-copy-to-clipboard
Advanced tools
Angular Copy To Clipboard (Directive/Component/Content projection)
npm i angular-copy-to-clipboard
import { AngularCopyToClipboardModule } from "angular-copy-to-clipboard";
@NgModule({
imports: [AngularCopyToClipboardModule],
})
export class AppModule {}
<angular-copy-to-clipboard
[height]="1.5"
[width]="1.5"
[color]="'#3456cc'"
[targetId]="'copy-me'"
(error)="error()"
(success)="success()"
></angular-copy-to-clipboard>
<button
copyToClipboard
[targetId]="'copy-me'"
(error)="error()"
(success)="success()"
>
Please copy me
</button>
<angular-copy-to-clipboard [targetId]="'copy-me'" (error)="error()" (success)="success()">
My component or html element
</angular-copy-to-clipboard>
public error(): void {
/** */
}
public success(): void {
/** */
}
Name | Type | Default | Required? | Description |
---|---|---|---|---|
targetId | string number | yes | The Element Id of content that you want to copy. | |
width | number | 1.3rem | no | Icon width when use as component. |
height | number | 1.3rem | no | Icon height when use as component. |
color | string | gray | no | Icon color when use as component. |
Name | Description |
---|---|
(error) | Define message for error. |
(success) | Define message for success. |
Hakime sheikhalishahi
If you like my work and I save your time you can buy me a 🍺 or 🍕
My Wallet address , Tether USD (ARBITRUM) :
0x04e125a00BCd45A4DD23279DcAfF1eAFd49DbEf6
MIT
FAQs
Angular Copy To Clipboard (Directive/Component/Content projection)
The npm package angular-copy-to-clipboard receives a total of 12 weekly downloads. As such, angular-copy-to-clipboard popularity was classified as not popular.
We found that angular-copy-to-clipboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.