The Clipboard API enables copy and pasting to/from the clipboard.
Clipboard.copy('Hello FAWI');
...
Clipboard.paste().then(
(resolve) => {
console.log(resolve);
},
(reject) => {
console.log('Error: ' + reject);
}
);
...
Clipboard.clear();
window.Clipboard.copy("Hello FAWI");
...
window.Clipboard.paste().then(
(resolve) => {
console.log(resolve);
},
(reject) => {
console.log("Error: " + reject);
}
);
...
window.Clipboard.clear();
window.Clipboard.copy("Hello FAWI");
...
window.Clipboard.paste().then(
(resolve) => {
console.log(resolve);
},
(reject) => {
console.log("Error: " + reject);
}
);
...
window.Clipboard.clear();
(<any>window).Clipboard.copy("Hello FAWI");
...
(<any>window).Clipboard.paste().then(
(resolve) => {
console.log(resolve);
},
(reject) => {
console.log("Error: " + reject);
}
);
...
(<any>window).Clipboard.clear();
window.Clipboard.copy("Hello FAWI");
...
window.Clipboard.paste().then(
(resolve) => {
console.log(resolve);
},
(reject) => {
console.log("Error: " + reject);
}
);
...
window.Clipboard.clear();