NgClipboard
Simple module that allows to make an HTML tag copyable on click or send a custom string to clipboard. Works on mobile!
Install / Use
/learn @nico-val/NgClipboardREADME
ngClipboard
AngularJS module to copy HTML tags on click, and send custom values to clipboard. No need for any Flash complements. It works on mobile devices.
##Installation
-
Download the latest release from here.
-
Include ngClipboard.js in your HTML.
<script src="ngClipboard.js"></script> -
Inject the module in your app.
angular.module('myApp',['ngClipboard']);
##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.
<div ng-copyable>Click to copy this text!</div>
###ngClipboard.toClipboard() factory
-
Inject ngClipboard in your controller
angular.controller('myController',['ngClipboard',function(ngClipboard){ /* ... */ }]); -
Then send values to clipboard using
ngClipboard.toClipboard(value);
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
