willmendesneto / ngx-copy-to-clipboard Goto Github PK
View Code? Open in Web Editor NEWCopy content to clipboard in Angular applications easier 🎯.
Copy content to clipboard in Angular applications easier 🎯.
I'm submitting a ... (check one with "x")
Current behavior
Expected behavior
as per README
Reproduction of the problem
In an Angular 10 project, with Ivy enabled, adding this dependency with npm i --save
, then adding import
declaration into app.module.ts
and module name into imports
block of the @NgModule
leads to this error:
i 「wdm」: Failed to compile.
ERROR in node_modules/ngx-copy-to-clipboard/lib/ngx-copy-to-clipboard.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of MiddlewareUiAppModule, but could not be resolved to an NgModule class.
This likely means that the library (ngx-copy-to-clipboard) which declares NgxCopyToClipboardModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available
, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
1 export declare class NgxCopyToClipboardModule {
~~~~~~~~~~~~~~~~~~~~~~~~
even with ngcc
being run after installation.
I had been a day long debugging this error but no solution found
error TS2339: Property 'cut' does not exist on type 'PrivacyPolicyComponent'.
46 [action]="cut"
~~~
and Copy text was not shown as button.
<ngx-copy-to-clipboard
target="#text-content"
[action]="cut"
[success]="onSuccess"
[error]="onError"
>Copy</ngx-copy-to-clipboard>
<div #text-content>
<p>Hello!</p>
</div>
what's wronng in my code ?
<ngx-copy-to-clipboard target="#text-content" [action]="copy" class="copy " [success]="onSuccess"
[error]="onError">copy
in browser inspector ther is button into ngx-copy-to-clipboard , how can i add class to this button ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.