Implement copy to clipboard on tapping an item

First, I’d like to apologize for my English.

I am developing a simple application for study and, within the card, there is a that contains the text ’ Copy code '.
I wonder if there is any way to implement such a function when the user touches the item (representing in the image). I’ve tried some solutions like CordovaClipboard but it doesn’t work.