I am trying to use the @ionic-native/clipboard
to copy some text in my app. However, once I add private clipboard: Clipboard
to my constructor, my app screen turns black in the Ionic Lab with the exception of the tabs on bottom, but the tabs are unresponsive. Below is a screenshot of the app after adding the constructor. The second screenshot is what the app looks when in Google developer mode. I followed the install instructions from https://ionicframework.com/docs/native/clipboard
tab1.page.ts:
import { Component } from ‘@angular/core’;
import { Clipboard } from ‘@ionic-native/clipboard/ngx’;
export class Tab1Page {
constructor(private clipboard: Clipboard) {}
}
1 post - 1 participant