grepper not showing code example
Example 1: grepper not working
I googled this because grepper wasnt working, apparently it is now :/
Example 2: grepper not working
$scope.CopyToClipBoard = function (text) {
if (navigator.clipboard != undefined) {
navigator.clipboard.writeText(text).then(function () {
console.log('Async: Copying to clipboard was successful!');
}, function (err) {
console.error('Async: Could not copy text: ', err);
});
}
else if(window.clipboardData) {
window.clipboardData.setData("Text", text);
}
};