ng-clipboard

Simple module that allows to make an HTML tag copyable on click or send a custom string to clipboard
Homepage:
2 people use it
Author: 9980879?v=3 nico-val

ngClipboard

AngularJS module to copy HTML tags on click, and send custom values to clipboard. No need for any Flash complements.

Installation

Download the latest release from here.

Include ngClipboard.js in your HTML. html <script src="ngClipboard.js"></script>

Demo

http://plnkr.co/edit/TMGDUH5IG4GazpBvT2rQ

Usage

ng-copyable directive

Add a "ng-copyable" attribute to any html tag to make it copyable on click. html <div ng-copyable>Click to copy this text!</div>

ngClipboard.toClipboard() factory

Inject ngClipboard in your controller. Then send values to clipboard using javascript ngClipboard.toClipboard(value);

comments powered by Disqus
This page was last updated almost 2 years ago.