npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngx-zmz-clipboard

v8.0.4-tsconfig-flags

Published

angular 2 clipboard

Downloads

7

Readme

Commitizen friendly travis build npm GitHub release npm

ngx-clipboard , F.K.A angular2-clipboard

From 6.0.0, there is no dependency anymore. Just Angular.

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 ngxClipboard

Dependencies

  • Angular >=4.0.0

If you need to use it on 2.0.0, please use version 7.x.x.

The code are pretty much the same, in 8.0.0 it uses InjectionToken which requires angular4.

Install

You can get it on npm.

npm install ngx-clipboard --save

Build project

1. npm i

2. npm run build

Usage

If you use SystemJS to load your files, you might have to update your config:

System.config({
    map: {
        'ngx-clipboard': 'node_modules/ngx-clipboard'
    }
});

For webpack / Angular CLI, it works as any other libraries. Please check demo folder for more help.

This library support 2 kinds of copy source.

You can either set

[cbContent]="'target string'"

Or

[ngxClipboard]="inputTarget" 

PLEASE CHECK WITH PLUNKER FIRST

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. The latest version (3.0.0+) works with AoT, please check /demo/angular2-aot-webpack to see how to make it work.

Kudos to

Thierry Templier This project is inspired by his answer on StackOverflow.

The core function is ported from clipboard.js by @zenorocha.

blacksonic AoT's demo is based on his project.