/angular2-clipboard

A wrapper directive for clipboard.js

Primary LanguageTypeScriptMIT LicenseMIT

Commitizen friendly travis build npm GitHub release npm

angular2-clipboard

Angular2 directive for clipboard.js by @zenorocha

Dependencies

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.

Troubleshooting

If you see the following error message.

Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.

Please check if the module setting in tsconfig.json is set to commonjs

Kudos to Thierry Templier This project is base on his answer on StackOverflow