Use awesome-cordova-plugins/clipboard pluvin

I need to add text copy feature on my “mobile ionic 7 cordova app” and I need to integrate “@awesome-cordova-plugins/clipboard” plugin.

I imported plugin

$ ionic cordova plugin add cordova-clipboard
$ npm install @awesome-cordova-plugins/clipboard

but I don’t know how it works.

import { Clipboard } from '@awesome-cordova-plugins/clipboard/ngx';

  declarations: [AppComponent],
  imports: [
  providers: [
  bootstrap: [AppComponent],
export class AppModule {}

error occurred:

Type ‘ClipboardOriginal’ is not assignable to type ‘Provider | EnvironmentProviders’

Unfortunatly I can’t found example from scratch. What I need import in my app.module.ts files? Could you please help me?

1 Like