JSFiddle - React, Tailwind, and code Playground

by Daniel Lamb

HTML

<div ng-app="myApp">
    <div ng-controller="Example">
        <input ng-copy="copy()" />
        copied: {{copied}}
    </div>
</div>

JavaScript

angular.module('myApp', [])
.controller('Example', ['$scope', function ($scope) {
    $scope.copied = false;
    $scope.copy = function () {
        $scope.copied = true;
    };
}]);