Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-clipboard

AngularJS directive to copy or cut text to clipboard without using flash.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
161
increased by9.52%
Maintainers
1
Weekly downloads
 
Created
Source

ng-clipboard

AngularJS directive to copy or cut text to clipboard without using flash.

Install

ng-clipboard is available on npm:

npm install ng-clipboard --save

or bower:

bower install ng-clipboard

Usage

It is very easy to use ng-clipboard, just put a button with one of the directives 'ng-copy' or 'ng-cut'. Both take as a parameter an ngModel.

Example

ng-copy

<input ng-model="textToCopy">
<button ng-copy="textToCopy"></button>

ng-cut

<input ng-model="textToCopy">
<button ng-cut="textToCopy"></button>

Advanced

onSucces and onError callbacks

<input ng-model="textToCopy">
<button ng-cut="textToCopy" onSuccess="onSuccess()" onError="onError()"></button>

Keywords

FAQs

Package last updated on 31 Mar 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc