angular 4 copy to clipboard example Example: copy to clipboard angular navigator.clipboard.writeText(content).then().catch(e => console.error(e));