bower install ngclipboard --save

'bower_components/clipboard/dist/clipboard.js', 
'bower_components/ngclipboard/dist/ngclipboard.js'

模块 注入ngclipboard

<input type="text" id="testCopy" ng-model="test" value="readonly" readonly />
<button class="btn btn-xs" ngclipboard data-clipboard-target="#testCopy">
        <i class="fa fa-file" title="复制到剪切板"></i>{{'copy'|translate}}
</button>

results matching ""

    No results matching ""