# angular-copy

> Copy to Clipboard functionality for Angular.

Latest version **0.2.0** (published 2017-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-copy
pnpm add angular-copy
yarn add angular-copy
bun add angular-copy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-01-09 |
| First published | 2017-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Known vulnerabilities | 0 (+26 in 5 direct dependencies) |
| Install scripts | no |
| Maintainers | shammelburg |

## Links

- npm: https://www.npmjs.com/package/angular-copy
- npm.io page: https://npm.io/package/angular-copy

## Dependencies (15)

- [rxjs](https://npm.io/package/rxjs.md) 5.0.0-beta.12
- [core-js](https://npm.io/package/core-js.md) ^2.4.1
- [zone.js](https://npm.io/package/zone.js.md) ^0.7.4
- [bootstrap](https://npm.io/package/bootstrap.md) ^3.3.7
- [ts-helpers](https://npm.io/package/ts-helpers.md) ^1.1.1
- [font-awesome](https://npm.io/package/font-awesome.md) ^4.7.0
- [@angular/core](https://npm.io/package/@angular/core.md) 2.4.2
- [@angular/http](https://npm.io/package/@angular/http.md) 2.4.2
- [@angular/forms](https://npm.io/package/@angular/forms.md) 2.4.2
- [@angular/common](https://npm.io/package/@angular/common.md) 2.4.2
- [@angular/router](https://npm.io/package/@angular/router.md) 3.4.2
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) 2.4.2
- [angular2-notifications](https://npm.io/package/angular2-notifications.md) ^0.4.49
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) 2.4.2
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) 2.4.2

## Recent versions

- 0.2.0 (latest) — 2017-01-09
- 0.1.0 — 2017-01-07

## README

# angular-copy
Copy to Clipboard functionality for Angular.

```
npm install angular-copy --save
```

Add to your app.module.ts file.
```
import { AngularCopyModule } from 'angular-copy';
```

Add to your html.
```
<copy-button [value]="'value to be copied!'"></copy-button>
<copy-span [value]="'value to be copied!'"></copy-span>
```

Other options,
```
<copy-***** 
  [value]="string"                -- required         -- value to be copied to clipboard 
  [text]="string"                 -- default: 'Copy To Clipboard'
  [css]="string"                  -- default: ''      -- add css classes (bootstrap, font-awesome, etc)
  [updateText]="boolean"          -- default: false   -- will change the text to "Copied!" for 1sec
  (callback)="callback(boolean)"  -- can be used for notification, return true
></copy-*****>
```

---
_Source: https://npm.io/package/angular-copy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
