diff --git a/CHANGELOG.md b/CHANGELOG.md index 602fb30..d6581b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.0.1](https://github.com/ifeelgoods/ifg-copy-to-clipboard/compare/1.0.0...1.0.1) (2018-07-31) + + +### Bug Fixes + +* Fix angular module name typo ([3ca09f6](https://github.com/ifeelgoods/ifg-copy-to-clipboard/commit/3ca09f6)) + + + # 1.0.0 (2018-07-31) diff --git a/lib/ifg-copy-to-clipboard.js b/lib/ifg-copy-to-clipboard.js index 7cf7599..4db0506 100644 --- a/lib/ifg-copy-to-clipboard.js +++ b/lib/ifg-copy-to-clipboard.js @@ -1 +1 @@ -angular.module("ifg.copyToClipbard",[]).directive("ifgCopyToClipboard",function(){return{retrict:"A",scope:{ifgCopyToClipboard:"@"},link(a,b){const c=b[0],d=a.ifgCopyToClipboard;c.addEventListener("click",()=>{const a=document.createElement("span"),b=document.createRange(),c=window.getSelection();a.textContent=d,a.style.position="fixed",a.style.width="1px",a.style.height="1px",a.style.opacity=0,document.body.appendChild(a),b.selectNode(a),c.removeAllRanges(),c.addRange(b),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(a)})}}}); \ No newline at end of file +angular.module("ifg.copyToClipboard",[]).directive("ifgCopyToClipboard",function(){return{retrict:"A",scope:{ifgCopyToClipboard:"@"},link(a,b){const c=b[0],d=a.ifgCopyToClipboard;c.addEventListener("click",()=>{const a=document.createElement("span"),b=document.createRange(),c=window.getSelection();a.textContent=d,a.style.position="fixed",a.style.width="1px",a.style.height="1px",a.style.opacity=0,document.body.appendChild(a),b.selectNode(a),c.removeAllRanges(),c.addRange(b),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(a)})}}}); \ No newline at end of file diff --git a/package.json b/package.json index d400ca7..61101d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ifg-copy-to-clipboard", - "version": "1.0.0", + "version": "1.0.1", "description": "AngularJS copy to clipboard directive", "main": "src/ifg-copy-to-clipboard.js", "repository": "git@github.com:ifeelgoods/ifg-copy-to-clipboard.git",