Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<div ng-controller="UI.UITestController2">

    <div class="row-fluid">
      <h3>Zero Clipboard</h3>
      <p>Directive that attaches a zero clipboard instance to an element so a user can click on a button to copy some text to the clipboard</p>
      <p>Best way to use this is next to a readonly input that displays the same data to be copied, that way folks that have Flash disabled can still copy the text.</p>
      <script type="text/ng-template" id="zeroClipboardTemplate">
        <input type="text" class="no-bottom-margin" readonly value="Some Text!">
        <button class="btn" zero-clipboard data-clipboard-text="Some Text!" title="Click to copy!">
          <i class="icon-copy"></i>
      <div hawtio-editor="zeroClipboard" mode="fileUploadExMode"></div>
      <div class="directive-example">
        <div compile="zeroClipboard"></div>

New to GrepCode? Check out our FAQ X