Skip to content

Instantly share code, notes, and snippets.

View agnel123's full-sized avatar
🎯
Focusing

Agnel agnel123

🎯
Focusing
View GitHub Profile
@agnel123
agnel123 / demo.html
Created May 8, 2018 16:59 — forked from JustMaier/demo.html
Simple copy to clipboard functionality in angular without any dependencies
<!-- View it live here: http://codepen.io/anon/pen/waZOjB -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.4/angular.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/JustMaier/6ef7788709d675bd8230/raw/3d39d50e66d8d77e05656ed7dd09298be7e86f1f/ngClickCopy.js"></script>
<script>
angular.module('app', ['ngClickCopy'])
</script>
<div ng-app="app">
<button ng-click-copy="Hello World">Copy</button>
</div>