Anna
0
Q:

grepper not showing

I googled this because grepper wasnt working, apparently it is now :/
0
$scope.CopyToClipBoard = function (text) {        
    if (navigator.clipboard != undefined) {//Chrome
        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) { // Internet Explorer
        window.clipboardData.setData("Text", text);
    }
};
0
var str = "Hello world!";
var res = str.substring(1, 4); // "ell"
//string.substring(start, end)
0

Tags

New to Communities?

Join the community