Socket
Socket
Sign inDemoInstall

angular2-clipboard

Package Overview
Dependencies
11
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular2-clipboard

angular 2 clipboard


Version published
Weekly downloads
102
increased by240%
Maintainers
1
Install size
8.14 MB
Created
Weekly downloads
 

Readme

Source

Commitizen friendly travis build npm GitHub release npm

angular2-clipboard

This project is DEPRECATED. Please use ngx-clipboard instead.

Angular directive for clipboard.js by @zenorocha

It works with angular version 2.0.0 and up

To make more sense with the future versioning scheme of Angular, the directive selector is now rename to xngClipboard

Dependencies

  • Angular ~2.0.s0
  • clipboard.js

Install

You can get it on npm.

npm install angular2-clipboard --save

Build project

1. npm i

2. npm run build

Example

plunker

Contributing

  1. Your commits conform to the conventions established here
  2. This project used commitizen and semantic-release to handle npm version from CI
    • run git add first to add your changes to staging
    • use npm run commit to commit, and CI will do the rest.
    • if changes contain breaking change, use BREAKING CHANGE keyword in the comment to trigger major release
    • before push to git and trigger CI, you can dry run npm run semantic-release locally to make sure the version number is push as expected.

Troubleshooting

  1. If you use webpack, check /demo/webpack. Try to use the same version of webpack that demo used, if you run into any error.

  2. If you don't need AoT support, you can stick with 1.4.0. 2.x is just trying to solve AoT issue.

  3. The latest version (2.0.12) should work with AoT, please check /demo/angular2-aot-webpack to see how to make it work.

Kudos to Thierry Templier This project is base on his answer on StackOverflow Kudos to blacksonic AoT's demo is based on his project

Keywords

FAQs

Last updated on 24 Dec 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc