We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fc6c31 commit 3878fbeCopy full SHA for 3878fbe
demo/demo.html
@@ -25,6 +25,10 @@
25
$scope.$watch('input', function(v) {
26
$scope.copied = false
27
});
28
+
29
+ $scope.clipError = function(e) {
30
+ console.log('Error: ' + e.name + ' - ' + e.message);
31
+ };
32
}]);
33
</script>
34
</head>
@@ -36,7 +40,7 @@ <h1>Angular ZeroClipboard Demo</h1>
36
40
<div>
37
41
<h1>Copy from input</h1>
38
42
<label for="">input: <input type="text" ng-model="input" id="input1"></label>
39
- <button ui-zeroclip zeroclip-copied="complete($event)" zeroclip-model="input" >Copy</button>
43
+ <button ui-zeroclip zeroclip-copied="complete($event)" zeroclip-on-error="clipError($event)" zeroclip-model="input" >Copy</button>
44
<span ng-show="copied">Copied!</span>
45
</div>
46
0 commit comments