Giter VIP home page Giter VIP logo

ngx-copy-to-clipboard's People

Contributors

dependabot[bot] avatar snyk-bot avatar willmendesneto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ngx-copy-to-clipboard's Issues

does not work with Angular 10 + Ivy

I'm submitting a ... (check one with "x")

  • bug report => search github for a similar issue or PR before submitting
  • feature request

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.

Property 'cut' does not exist on type

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 ?

how to add class to button in ngx-copy-to-clipboard ?

<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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.