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

org.webjars.bower:github-com-lisposter-angular-zeroclipboard

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.webjars.bower:github-com-lisposter-angular-zeroclipboard

WebJar for angular-zeroclipboard

  • 0.8.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Angular ZeroClipboard

bower version

An angular wrapper for ZeroClipboard

Install

$ bower install angular-zeroclipboard

or, you can download 'angular-zeroclipboard.js' form 'src' dir manualy.

Sample

config

angular.module('demo', ['zeroclipboard']).
  config(['uiZeroclipConfigProvider', function(uiZeroclipConfigProvider) {

    // config ZeroClipboard
    uiZeroclipConfigProvider.setZcConf({
      swfPath: '../bower_components/zeroclipboard/dist/ZeroClipboard.swf'
    });

  }])

usage

Example using a two-way model binding

<input type="text" ng-model="myText" />
<button ui-zeroclip zeroclip-copied="copied=true" zeroclip-model="myText">Copy</button>
<span ng-show="copied">Text Copied!</span>

Example using interpolated text:

<input type="text" ng-model="myText" />
<button ui-zeroclip zeroclip-copied="copied=true"
        zeroclip-text="This was your text: {{ myText }}">Copy</button>
<span ng-show="copied">The sentence "This was your text: {{ myText }}" was copied!</span>

Config

Configuration passed into ZeroClipboard.config

uiZeroclipConfigProvider.setZcConf({
    swfPath: '../path/to/ZeroClipboard.swf'
})

If you already have your own configuration and don't want it to be overridden:

uiZeroclipConfigProvider.setOverrideConfig(false);

The params is an object. and just same as ZeroClipboard official config

LICENSE

MIT @ Leigh Zhu

FAQs

Package last updated on 23 Jun 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