ng2-clip

Copy to clipboard using Angular and clipboard.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ng2-clip
602.0.05 years ago6 years agoMinified + gzip package size for ng2-clip in KB

Readme

Build Status Downloads Versions() License()
Copy to clipboard using Angular and clipboard.js
demo
https://doxiaodong.github.io/ng2-clip
Useage
  • install npm i ng2-clip --save

import { NgModule } from '@angular/core'
import { ClipModule } from 'ng2-clip'
@NgModule({
  imports: [
    ClipModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

<button clip="The word you want to copy" (onClip)="callback($event)"></button>
<button [clip]="'The word you want to copy'" (onClip)="callback($event)"></button>